Ejemplo n.º 1
0
        public IActionResult Index()
        {
            List <Location>  locations         = unitOfWork.LocationRepository.GetLocations();
            List <Apartment> cleanedApartments = apartmentService.GetAllCleanedApartments();
            dynamic          model             = new ExpandoObject();

            model.Locations         = locations;
            model.CleanedApartments = cleanedApartments;
            return(View(model));
        }