예제 #1
0
        public ActionResult Details(int id)
        {
            var facilities = facilityManagement.GetById(id);
            var result     = mapper.Map <Facility, FacilityIndexViewModel>(facilities);

            return(View(result));
        }
예제 #2
0
        public IActionResult Create(ReservationViewModel model)
        {
            Facility facility = facilityManagement.GetById(model.FacilityId);

            model.FacilityName = facility.Name;
            return(View(model));
        }