Skip to content
Snippets Groups Projects

commit

4 files
+ 86
0
Compare changes
  • Side-by-side
  • Inline

Files

@@ -69,6 +69,22 @@ namespace Tsi1.Api.Controllers
@@ -69,6 +69,22 @@ namespace Tsi1.Api.Controllers
return Ok(result.Data);
return Ok(result.Data);
}
}
 
 
[Authorize(Roles = UserTypes.FacultyAdmin)]
 
[HttpGet("GetAllStudentCourseResults")]
 
public async Task<IActionResult> GetAllStudentCourseResults()
 
{
 
var tenantId = int.Parse(HttpContext.User.Claims.FirstOrDefault(x => x.Type == "TenantId").Value);
 
 
var result = await _studentCourseResultService.GetAllLastStudentCourseResults(tenantId);
 
 
if (result.HasError)
 
{
 
return BadRequest(result.Message);
 
}
 
 
return Ok(result.Data);
 
}
[Authorize(Roles = UserTypes.FacultyAdmin + ", " + UserTypes.Professor)]
[Authorize(Roles = UserTypes.FacultyAdmin + ", " + UserTypes.Professor)]
[HttpPost("Create")]
[HttpPost("Create")]
Loading