Esempio n. 1
0
        public IActionResult Delete(int id = 0)
        {
            if (id > 0)
            {
                adm.Delete(id);
            }

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