예제 #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"));
        }