public ActionResult Manager() {//startup for when the user opens Home/Manager //uses dynamic model creation to pass both the patient list and the beds list to the manager view var modelA = _patientRepository.GetAllPatient(); var modelB = _bedRepository.GetAllBeds(); bedPatientModel model = new bedPatientModel(); model._patient = modelA; model._beds = modelB; return(View(model)); }
public List <Models.BedModel> GetAllBeds() { return((List <Models.BedModel>)_bedRepository.GetAllBeds()); }