Ejemplo 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 = ""
     });
 }
Ejemplo n.º 2
0
 public TaskCategoryWrapper ToTaskCategoryWrapper(ListItem listItem)
 {
     var result = new TaskCategoryWrapper(listItem)
         {
             RelativeItemsCount = DaoFactory.GetListItemDao().GetRelativeItemsCount(ListType.TaskCategory, listItem.ID)
         };
     return result;
 }