public IActionResult AdminAcceptEvent(int id)
        {
            TempData["Final"] = "You have approved this event both teams will be notified";
            MessagesModel Message = messageDAL.GetMessagebyID(id);

            Message.AdminAccepted = "Accepted";
            messageDAL.UpdateMessage(Message);
            return(RedirectToAction("FinalizeEvent", "Admin"));
        }
Esempio n. 2
0
        public IActionResult UserAcceptEvent(int id)
        {
            TempData["Final"] = "You have approved this event, now pending Admin approval";
            MessagesModel Message = messageDAL.GetMessagebyID(id);

            Message.UserAccepted = "Accepted";
            messageDAL.UpdateMessage(Message);
            return(RedirectToAction("SeeMessages", "Message"));
        }