public async Task <bool> AddActivityType(ActivityType activitytype) { try { await _db.Set <ActivityType>().AddAsync(activitytype); } catch (Exception e) { return(false); } return(true); }
public async Task <bool> AddProjectUserRole(ProjectUserRole pur) { try { await _db.Set <ProjectUserRole>().AddAsync(pur); } catch (Exception e) { return(false); } return(true); }
public async Task <bool> UpdateProject(Project project) { try { _db.Set <Project>().Update(project); _db.SaveChanges(); } catch (Exception e) { return(false); } return(true); }
public IQueryable <T> GetQuery() { return(DbContext.Set <T>()); }