Пример #1
0
        public IActionResult OnGetCancel(long id)
        {
            var result = _commentApplication.Cancel(id);

            if (result.IsSucceeded)
            {
                return(RedirectToPage("./Index"));
            }
            Message = result.Message;
            return(RedirectToPage("./Index"));
        }
 public RedirectToPageResult OnPostCancel(long id)
 {
     _commentApplication.Cancel(id);
     return(RedirectToPage("./List"));
 }
Пример #3
0
        public IActionResult OnPostCancel(long id)
        {
            var result = _commentApplication.Cancel(id);

            return(RedirectToPage("./Index"));
        }
Пример #4
0
 public IActionResult OnPostCancel(int id)
 {
     _commentApplication.Cancel(id);
     return(RedirectToPage("Index"));
 }
Пример #5
0
        public IActionResult OnGetCancel(long id)
        {
            var operationResult = _commentApplication.Cancel(id);

            return(RedirectToPage("Index"));
        }