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")); }
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 })); }