public async Task <IActionResult> GetAll()
 {
     return(View(_mapper.Map <IEnumerable <GradeDto> >(await _gradeService.GetAllAsync())));
 }
Example #2
0
 public async Task <IActionResult> All()
 {
     return(this.View(await gradeService.GetAllAsync(this.userManager.GetUserId(this.User))));
 }