public ActionResult Details(long?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } HallDomainModel hallDomainModel = _hallService.ReadById(id); if (hallDomainModel == null) { return(new HttpStatusCodeResult(HttpStatusCode.NotFound)); } HallViewModel hallViewModel = Mapper.Map <HallDomainModel, HallViewModel>(hallDomainModel); return(View(hallViewModel)); }