public ActionResult Edit(int id, prisonerCell prisonerCell)
        {
            try
            {
                // TODO: Add update logic here
                db.Entry(prisonerCell).State = EntityState.Modified;
                db.SaveChanges();

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }
        public ActionResult Create(prisonerCell prisonerCell)
        {
            try
            {
                // TODO: Add insert logic here
                prisonerCell.availableCount  = prisonerCell.capacity;
                db.Entry(prisonerCell).State = EntityState.Added;
                db.SaveChanges();

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }