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