public ActionResult DeleteSelectedMessage(int?messageId) { if (messageId != null) { mDB.deleteMessageById(Convert.ToInt32(messageId)); } return(RedirectToAction("Messages")); }
public ActionResult DeleteSelectedMessage(int?messageId) { if (messageId != null) { mDB.deleteMessageById(Convert.ToInt32(messageId)); } return(RedirectToAction("Messages")); }