//Update public ActionResult GettingStaffDetails(int StaffID) { var repo = new StaffRepository(); var staffDetails = repo.GettingStaffDetails(StaffID); return(View(staffDetails)); }