Example #1
0
        // GET: Admin/ResidenceTypes/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ResidenceType residenceType = residenceTypeRepository.GetResidenceTypeById(id.Value);

            if (residenceType == null)
            {
                return(HttpNotFound());
            }
            return(View(residenceType));
        }