Ejemplo n.º 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."));
 }
Ejemplo n.º 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"));
 }
Ejemplo n.º 3
0
 public void Modify()
 {
     repo.Update();
 }