public TaskViewModel(TaskInfoDto taskInfo) { Name = taskInfo.Name; Id = taskInfo.Id; AddedOn = taskInfo.AddedOn; Sessions = new TransactionalObservableCollection <string>(); Update(taskInfo); }
/* * TaskInfoView */ /// <summary> /// Map using Automapper /// </summary> public static TaskInfoView MapToDbView(this TaskInfoDto dto) { return(Mapper.Map <TaskInfoView>(dto)); }