예제 #1
0
        public ApartmentCreateViewModel GetCreateApartment()
        {
            ApartmentCreateViewModel apartmentCreate = new ApartmentCreateViewModel();

            apartmentCreate.AvailableToGuest  = availableToGuestService.GetAll().ToList();
            apartmentCreate.TypeOfHousing     = typeOfHousingService.GetAll().ToList();
            apartmentCreate.ApartmentComforts = apartmentComfortService.GetAll().ToList();
            return(apartmentCreate);
        }
        // GET: Admin/ApartmentComfort
        public ActionResult Index()
        {
            var apartmentComforts = apartmentComfortService.GetAll();

            return(View(apartmentComforts));
        }