public ActionResult EditEmergencyContacts(Int64 EmployeeNumber) { EmergencyContactsRepository empService = new EmergencyContactsRepository(); return(View(empService.GetEmergencyContacts().Where(emergency => emergency.EmployeeNumber == EmployeeNumber).FirstOrDefault())); }
public IEnumerable <EmergencyContact> GetAllEmergencyContacts() { return(emergencyrepository.GetEmergencyContacts()); }