Source

main / Source / WebClient / Web.Client / Extensions / DocumentExtension.cs

Full commit

using DataUp.Web.BizLogic;
using DataUp.Web.Client.ViewModel;
using DataUp.Web.Client.Model;
namespace DataUp.Web.Client
{
    public static class DocumentExtension
    {
        public static void SetValuesFrom(this Document document, DocumentDetail details)
        {
            if (document != null && details != null)
            {
                document.ID = details.Id;
                document.Identifier = details.Identifier;
                document.Size = details.Data.Size;
                document.Status = details.Status;
                document.Filename = details.FileName;
                document.UploadedOn = details.CreatedDateTime;
            }
        }
    }
}