public ActionResult View(long houseID) { var house = houseRepository.GetById(houseID); var result = houseService.CanViewHouse(house, SessionHelper.CurrentEntity); if (result.IsError) { return(RedirectBackWithError(result)); } var vm = new HouseViewModel(house, houseService.GetHouseRights(house, SessionHelper.CurrentEntity)); return(View(vm)); }