Esempio n. 1
0
        public async Task <IActionResult> RejectAd(RejectAdInputModel inputModel)
        {
            await adsService.CreateAdRejectionAsync(inputModel.AdId, inputModel.Comment);

            var adsForApprovalViewModels = await adsService.GetAdsForApprovalViewModelsAsync(DefaultPageNumber, DefaultPageSize);

            return(RedirectToAction("ForApproval", adsForApprovalViewModels));
        }