//Adverts

        public async Task <IActionResult> AdvertsList(bool activ)
        {
            IEnumerable <AdvertsListVievModel> advertsList;

            if (activ)
            {
                advertsList = await _advertService.AdvertsListAsync();
            }
            else
            {
                advertsList = await _advertService.DeactivateAdvertsListAsync();
            }

            return(View(advertsList));
        }
Example #2
0
        public async Task <IActionResult> Lista_ogloszen()
        {
            var advertsList = await _advertService.AdvertsListAsync();

            return(View(advertsList));
        }