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