Esempio n. 1
0
 internal static C.Task ToClient(this G.Task task)
 {
     if (task == null)
     {
         return(null);
     }
     return(new C.Task(
                task.Id,
                task.Name,
                task.Description,
                task.StartDate,
                task.DeadLine,
                task.ProjectId,
                task.TaskTeam,
                task.MainTaskId));
 }
 internal static C.Task ToClient(this G.Task entity)
 {
     return(new C.Task((int)entity.Id, entity.ProjectId, entity.CreatorId, entity.TeamId,
                       entity.Name, entity.Description, entity.StartDate, entity.EndDate, entity.Deadline,
                       entity.SubtaskOf, entity.StatusName, entity.StatusDate, (int)entity.StatusId));
 }