public OkResult ModifyTask([FromBody] TaskDetailsDTO details, string username)
 {
     service.ModifyTask(new User {
         Username = username
     }, details.ToEntity());
     return(Ok());
 }
 public OkResult AddTask(long project_id, [FromBody] TaskDetailsDTO details, string username)
 {
     details.Users = new List <string>()
     {
         username
     };
     details.TimeLog = new List <TimeLogDTO>();
     service.AddTask(new User {
         Username = username
     }, project_id, details.ToEntity());
     return(Ok());
 }