public ActionResult NewYearAreaSelected(Area area, List <int> chooseTutor, List <int> chooseTrainee) { var status = _tutorService.MoveToNextYear(area, chooseTutor); if (status.Success) { status = _traineeService.MoveToNextYear(area, chooseTrainee); if (status.Success) { var result = _tutorTraineeService.Get(area, TTStatus.Active); if (result.Success) { var tutorTrainnee = new TutorTraineeNewYearViewModel { TutorTrainee = result.Data, Area = area }; return(View("SelecetMatches", tutorTrainnee)); } else { status = result; } } } return(Error(status)); }
// GET: Relationship public ActionResult Index() { if (CurrentUser.UserRole.ToString() == "Rackaz") { ViewBag.IsRackaz = true; } else { ViewBag.IsRackaz = false; } var result = _tutorTraineeService.Get(CurrentUser.Area); if (result.Success) { return(View(result.Data)); } var status = new StatusModel(false, result.Message); return(Error(status)); }