public async Task <IActionResult> Index() { var user = await this.userManager.GetUserAsync(this.User); var companyId = this.departmentService.GetCompanyIdByDepartmentId(user.DepartmentId); var evals = this.evaluationService.GetAll(companyId); var model = new AllEvalsViewModel { Evaluations = evals }; return(View(model)); }
public async Task <IActionResult> Index() { var user = await this.userManager.GetUserAsync(this.User); var companyId = this.departmentService.GetCompanyIdByDepartmentId(user.DepartmentId); var evals = this.evaluationService.GetAllForManager(companyId, user.DepartmentId.Value); var model = new AllEvalsViewModel { Evaluations = evals }; return(View("/Areas/Administration/Views/Evaluations/Index.cshtml", model)); }