public ActionResult DeleteConfirm(int id) { if (id == 0) { return(NotFound()); } try { MessageBL.RemoveMessage(id); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public ActionResult DeleteConfirm(int id) { if (id == 0) { return(NotFound()); } try { MessageBL.RemoveMessage(id); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }