Example #1
0
 public IActionResult UpdateCourse([FromBody] CourseModel course)
 {
     if (CourseRepo.Update(course))
     {
         return(Ok("Course has been successfully updated."));
     }
     return(NotFound("The course was not found."));
 }
Example #2
0
 public ActionResult UpdateCourse([FromBody] Course c)
 {
     if (CourseRepo.Update(c))
     {
         return(Ok("Course has been successfull updated"));
     }
     return(NotFound("The Course record is not found"));
 }
Example #3
0
 public void Modify()
 {
     repo.Update();
 }