public ActionResult Details(int id) { var city = _placesService.GetDistrictById(id); if (city == null) { AddMessageToTempData(CommonResources.NoDataFound, BusinessSolutions.MVCCommon.MessageType.Error); return(RedirectToAction("Index")); } return(View(city)); }