Пример #1
0
        public UpdateViewModel(ToDoItemDetails item)
        {
            if (item == null)
            {
                return;
            }

            this.Id            = item.Id;
            this.CategoryId    = item.CategoryId;
            this.Completed     = item.Completed;
            this.CompletedDate = item.CompletedDate;
            this.CompletedUser = item.CompletedUser;
            this.Content       = item.Content;
            this.CreationDate  = item.CreationDate;
            this.CreationUser  = item.User;
            this.Title         = item.Title;
        }
Пример #2
0
        public ToDoItemViewModel(ToDoItemDetails item)
        {
            if (item == null)
            {
                return;
            }

            this.CategoryDescription = item.CategoryDescription;
            this.CategoryId          = item.CategoryId;
            this.CategoryName        = item.CategoryName;
            this.Completed           = item.Completed;
            this.CompletedDate       = item.CompletedDate;
            this.CompletedUser       = item.CompletedUser;
            this.CompletedUserId     = item.CompletedUserId;
            this.Content             = item.Content;
            this.CreationDate        = item.CreationDate;
            this.Id     = item.Id;
            this.Title  = item.Title;
            this.User   = item.User;
            this.UserId = item.UserId;
        }