Example #1
0
 public Task <int> CreateProject(Timbr.Entities.Project project)
 {
     if (project.Id != 0)
     {
         return(_database.UpdateAsync(project));
     }
     else
     {
         return(_database.InsertAsync(project));
     }
 }
Example #2
0
 public Task <int> DeleteProject(Timbr.Entities.Project project)
 {
     return(_database.DeleteAsync(project));
 }