コード例 #1
0
 public IActionResult UpdateFaculty([FromBody] FacultyModel faculty)
 {
     if (FacultyRepo.Update(faculty))
     {
         return(Ok("Faculty has been successfully updated."));
     }
     return(NotFound("The faculty member was not found."));
 }
コード例 #2
0
 public ActionResult UpdateStudent([FromBody] Faculty f)
 {
     if (FacultyRepo.Update(f))
     {
         return(Ok("Faculty has been successfull updated"));
     }
     return(NotFound("The Faculty record is not found"));
 }