Beispiel #1
0
        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);
 }
Beispiel #4
0
 public UnusedCourse Update(UnusedCourse model)
 {
     model.LastUpdated = DateTime.Now;
     return(unusedCourseRepository.Update(model));
 }
Beispiel #5
0
 public UnusedCourse Remove(UnusedCourse model)
 {
     throw new NotImplementedException();
 }
Beispiel #6
0
 public UnusedCourse Add(UnusedCourse model)
 {
     model.DateCreated = DateTime.Now;
     return(unusedCourseRepository.Add(model));
 }
Beispiel #7
0
 public async Task <UnusedCourse> UpdateAsync(UnusedCourse model)
 {
     model.LastUpdated = DateTime.Now;
     return(await unusedCourseRepository.UpdateAsync(model));
 }
Beispiel #8
0
 public async Task <UnusedCourse> AddAsync(UnusedCourse model)
 {
     model.DateCreated = DateTime.Now;
     return(await unusedCourseRepository.AddAsync(model));
 }