示例#1
0
        public ActionResult <IEnumerable <Inmate> > GetAll()
        {
            var storage = new InmateStorage();
            var inmates = storage.GetAllFromStorage();

            return(Ok(inmates));
            // inmates is from the InmateStorage, our 'temp database'
        }
示例#2
0
        public void AddAnInmate(Inmate inmate)
        {
            var storage = new InmateStorage();

            storage.AddNewInmateInStorage(inmate);
        }
示例#3
0
 public InmateController()
 {
     _alcatraz = new InmateStorage();
 }
 public IncarceratedController()
 {
     storage = new InmateStorage();
 }