public ActionResult ApproveMatchesAreaSelected(Area area) { var model = new TutorTraineeApproveViewModel(); if (CurrentUser.UserRole.ToString() == "Rackaz") { model.IsRackaz = true; model.Area = area; } else { model.IsRackaz = false; model.Area = null; } //Add tutorTrainee list var tutorTraineeStatus = _tutorTraineeService.GetUnApprovedMatches(area); if (tutorTraineeStatus.Success) { model.MatchesList = tutorTraineeStatus.Data; } else { Response.StatusCode = 404; return(Error(tutorTraineeStatus, true)); } return(View("ApproveMatchesAreaSelected", model)); }
public ActionResult ApproveMatches() { var model = new TutorTraineeApproveViewModel(); if (CurrentUser.UserRole.ToString() == "Rackaz") { ViewBag.IsRackaz = true; model.Area = CurrentUser.Area; } else { ViewBag.IsRackaz = false; } return(View(model)); }