public ActionResult <IEnumerable <Inmate> > GetAll() { var storage = new InmateStorage(); var inmates = storage.GetAllFromStorage(); return(Ok(inmates)); // inmates is from the InmateStorage, our 'temp database' }
public void AddAnInmate(Inmate inmate) { var storage = new InmateStorage(); storage.AddNewInmateInStorage(inmate); }
public InmateController() { _alcatraz = new InmateStorage(); }
public IncarceratedController() { storage = new InmateStorage(); }