public ActionResult DeleteMessage(User user, Message message)
        {
            IDAL DAL = new DBDataAL();
            DAL.RemoveMessage(message);

            FriendData data = new FriendData("matt");
            return View("Web/Friends", data);
        }
Ejemplo n.º 2
0
        public ActionResult DeleteMessage(int messageId)
        {
            IDAL DAL = new DBDataAL();
            string Name = User.Identity.Name;
            DAL.RemoveMessage(messageId);

            FriendData data = new FriendData(Name);
            return View("~/Views/Web/Friends.cshtml", data);
        }