public ActionResult Details(int id) { var facilities = facilityManagement.GetById(id); var result = mapper.Map <Facility, FacilityIndexViewModel>(facilities); return(View(result)); }
public IActionResult Create(ReservationViewModel model) { Facility facility = facilityManagement.GetById(model.FacilityId); model.FacilityName = facility.Name; return(View(model)); }