public IActionResult AdminCourseStartUpdate(CourseStart courseStart) { if (ModelState.IsValid) { _courseStartRepository.UpdateCourseStartAsync(courseStart); } return(RedirectToAction("AdminDashboard")); }
public void UpdateCourseStartAsync(CourseStart courseStart) { var entity = this.GetCourseStart(); if (entity != null) { entity.CourseStartDate = courseStart.CourseStartDate; } _context.SaveChanges(); }
public void Update(CourseStart model) { af.Update(model); }
public int Insert(CourseStart model) { return(af.Insert(model)); }