public static TaskTemplateWrapper GetSample() { return(new TaskTemplateWrapper { Title = "Send an Email", Category = TaskCategory.GetSample(), isNotify = true, Responsible = EmployeeWraper.GetSample(), ContainerID = 12, DeadLineIsFixed = false, OffsetTicks = TimeSpan.FromDays(10).Ticks, Description = "" }); }
public TaskCategory ToTaskCategory(ListItem listItem) { var result = new TaskCategory(listItem) { RelativeItemsCount = DaoFactory.GetListItemDao().GetRelativeItemsCount(ListType.TaskCategory,listItem.ID) }; return result; }