private Task ConvertToClient(Projman.Server.Task task)
        {
            var t = new Task();

            t.id            = task.Id;
            t.EndDate       = ConvertFromUnix(task.EndDate);
            t.StartDate     = ConvertFromUnix(task.StartDate);
            t.projectId     = task.ProjectId;
            t.description   = task.Description;
            t.title         = task.Title;
            t.AssignedUser  = getUser(task.AssigneeUserId);
            t.AssignedDate  = ConvertFromUnix(task.AssignedDate);
            t.CreatedByUser = getUser(task.CreatedByUserId);
            t.Status        = task.Status;
            t.CloseDate     = ConvertFromUnix(task.CloseDate);
            t.CreatedDate   = ConvertFromUnix(task.CreatedDate);
            return(t);
        }
 private Projman.Server.Task ConvertToServer(Task task)
 {
     Projman.Server.Task t = new Projman.Server.Task
     {
         AssignedDate    = ConvertDate(task.AssignedDate),
         AssigneeUserId  = task.AssignedUser?.id ?? 0,
         CloseDate       = ConvertDate(task.CloseDate),
         CreatedByUserId = task.CreatedByUser?.id ?? _currentUser.id,
         CreatedDate     = ConvertDate(task.CreatedDate),
         Description     = task.description,
         ProjectId       = task.projectId.Value,
         Status          = task.Status,
         Title           = task.title,
         Id        = task.id,
         StartDate = ConvertDate(task.StartDate),
         EndDate   = ConvertDate(task.EndDate)
     };
     return(t);
 }