Esempio n. 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/AvailableToGuest
        public ActionResult Index()
        {
            var availableToGuests = availableToGuestService.GetAll();

            return(View(availableToGuests));
        }