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")); }
public IActionResult OnPostCancel(long id) { var result = _commentApplication.Cancel(id); return(RedirectToPage("./Index")); }
public IActionResult OnPostCancel(int id) { _commentApplication.Cancel(id); return(RedirectToPage("Index")); }
public IActionResult OnGetCancel(long id) { var operationResult = _commentApplication.Cancel(id); return(RedirectToPage("Index")); }