Ejemplo n.º 1
0
        public async Task <IActionResult> LoadFacebookManagement()
        {
            var vm = new FacebookPostManagementViewModel()
            {
                FacebookPosts = (await _facebookPostRepository.GetAllAysnc()).ToList()
            };

            return(View("FacebookPostManagement", vm));
        }
        public async Task <IActionResult> Index()
        {
            var attractions = await _attractionRepository.GetAttractionsVisibleToClientWithImagesAsync();

            var posts = await _facebookPostRepository.GetAllAysnc();

            var vm = new LocalAreaViewModel
            {
                Attractions   = attractions,
                FacebookPosts = posts.ToList()
            };

            return(View("LocalArea", vm));
        }