コード例 #1
0
        public IActionResult AprooveUser(IDictionary <string, string> rv)
        {
            int    eventId    = int.Parse(rv["eventId"]);
            int    positionId = int.Parse(rv["positionId"]);
            string userID     = rv["userId"];

            attendanceService.ApproveUserForeEvent(userID, eventId, positionId).Wait();
            return(RedirectToAction("HomePageView", "HomePage"));
        }
コード例 #2
0
        public IActionResult ApproveUser(ApproveOrIgnoreUserModel model)
        {
            int    eventId    = model.EventId;
            int    positionId = model.PositionId;
            string userId     = model.UserId;

            attendanceService.ApproveUserForeEvent(userId, eventId, positionId).Wait();
            return(RedirectToAction("DetermineEventView", "HomePage", new { Id = eventId }));
        }