Пример #1
0
        public TaskViewModel(TaskInfoDto taskInfo)
        {
            Name     = taskInfo.Name;
            Id       = taskInfo.Id;
            AddedOn  = taskInfo.AddedOn;
            Sessions = new TransactionalObservableCollection <string>();

            Update(taskInfo);
        }
Пример #2
0
 /*
  * TaskInfoView
  */
 /// <summary>
 /// Map using Automapper
 /// </summary>
 public static TaskInfoView MapToDbView(this TaskInfoDto dto)
 {
     return(Mapper.Map <TaskInfoView>(dto));
 }