public ActionResult Details(Guid id) { var room = _roomAppService.GetById(id); if (room == null) { return(HttpNotFound()); } return(View(room)); }
public IActionResult Details(Guid id) { var roomVIewModel = mapper.Map <RoomViewModel>(roomApp.GetById(id)); return(View(roomVIewModel)); }