public IActionResult Delete(int id = 0) { if (id > 0) { adm.Delete(id); } return(RedirectToAction("Index")); }
public IActionResult OnGetDelete(int id) { _authorDm.Delete(id); return(RedirectToPage("Index")); }
private void mView_Delete(object sender, EventArgs e) { mView.Message = _authorDm.Delete(mView.AuthorId); }