예제 #1
0
        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"));
        }
예제 #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"));
        }