public async Task <UnusedCourse> UpdateAsync(UnusedCourse model) { Context.UnusedCourses.AddOrUpdate(model); await Context.SaveChangesAsync(); return(model); }
public UnusedCourse Update(UnusedCourse model) { Context.UnusedCourse.Update(model); Context.SaveChanges(); return(model); }
public UnusedCourse Add(UnusedCourse model) { Context.UnusedCourse.Add(model); Context.SaveChanges(); return(model); }
public UnusedCourse Update(UnusedCourse model) { model.LastUpdated = DateTime.Now; return(unusedCourseRepository.Update(model)); }
public UnusedCourse Remove(UnusedCourse model) { throw new NotImplementedException(); }
public UnusedCourse Add(UnusedCourse model) { model.DateCreated = DateTime.Now; return(unusedCourseRepository.Add(model)); }
public async Task <UnusedCourse> UpdateAsync(UnusedCourse model) { model.LastUpdated = DateTime.Now; return(await unusedCourseRepository.UpdateAsync(model)); }
public async Task <UnusedCourse> AddAsync(UnusedCourse model) { model.DateCreated = DateTime.Now; return(await unusedCourseRepository.AddAsync(model)); }