示例#1
0
 public Task <int> CreateTask(Timbr.Entities.Task task)
 {
     if (task.Id != 0)
     {
         return(_database.UpdateAsync(task));
     }
     else
     {
         return(_database.InsertAsync(task));
     }
 }
示例#2
0
 public Task <int> DeleteProject(Timbr.Entities.Task task)
 {
     return(_database.DeleteAsync(task));
 }