public ActionResult <int> GetDaysLeftInSentence(int id)
        {
            var      repo          = new InmateRepository();
            var      inmate        = repo.Get(id);
            var      today         = DateTime.Now;
            TimeSpan daysServed    = inmate.ConvictedDate - today;
            var      daysServedAbs = Math.Abs(daysServed.Days);
            var      daysLeft      = (inmate.LengthOfSentence - daysServedAbs);

            return(daysLeft);
        }
        public ActionResult <Inmate> GetById(int id)
        {
            var repo = new InmateRepository();

            return(repo.Get(id));
        }
        public ActionResult <IEnumerable <Inmate> > GetByCriminalInterest(CriminalInterest criminalInterestToSearchFor)
        {
            var inmateRepo = new InmateRepository();

            return(inmateRepo.Get(criminalInterestToSearchFor));
        }