Пример #1
0
        public async Task <IActionResult> OnPostAsync()
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }

            await _faqService.AddNewFaq(Faq);

            return(RedirectToPage("./Index"));
        }