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