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);
        }
Exemple #2
0
        public ActionResult <IEnumerable <Inmate> > GetAllInmates()
        {
            var repo = new InmateRepository();

            return(repo.GetAll());
        }