public IEnumerable <Inmate> UpdateServices(string name, string serviceToUpdate, UpdateServiceCommand newService) { var repo = new InmateRepository(); var services = repo.UpdateService(name, serviceToUpdate, newService); var allInmates = repo.GetAll(); return(allInmates); }
public ActionResult <IEnumerable <Inmate> > GetAllInmates() { var repo = new InmateRepository(); return(repo.GetAll()); }