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.")); }
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")); }