Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tsi1-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rodrigo Sastre Marotta
tsi1-backend
Merge requests
!45
commit
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
commit
feature/report-course-results-facultyAdmin
into
develop
Overview
0
Commits
1
Pipelines
0
Changes
4
Merged
commit
Enzo Santangelo Dodera
requested to merge
feature/report-course-results-facultyAdmin
into
develop
Dec 12, 2020
Overview
0
Commits
1
Pipelines
0
Changes
4
0
0
Merge request reports
Viewing commit
cf277878
Show latest version
4 files
+
86
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
cf277878
commit
· cf277878
esantangelo
authored
Dec 12, 2020
Tsi1.Api/Tsi1.Api/Controllers/StudentCourseResultController.cs
+
16
−
0
View file @ cf277878
Edit in single-file editor
Open in Web IDE
Show full file
@@ -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