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
!14
add 2 endpoints for report
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
add 2 endpoints for report
feature/udelar-reports
into
develop
Overview
0
Commits
3
Pipelines
0
Changes
8
Merged
add 2 endpoints for report
Enzo Santangelo Dodera
requested to merge
feature/udelar-reports
into
develop
Nov 1, 2020
Overview
0
Commits
3
Pipelines
0
Changes
8
0
0
Merge request reports
Viewing commit
294c6a76
Prev
Next
Show latest version
8 files
+
121
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
294c6a76
add 2 endpoints for report
· 294c6a76
esantangelo
authored
Nov 1, 2020
Tsi1.Api/Tsi1.Api/Controllers/TenantController.cs
+
28
−
0
View file @ 294c6a76
Edit in single-file editor
Open in Web IDE
Show full file
@@ -87,5 +87,33 @@ namespace Tsi1.Api.Controllers
return
Ok
();
}
[
Authorize
(
Roles
=
UserTypes
.
UdelarAdmin
)]
[
HttpGet
(
"FacultyList"
)]
public
async
Task
<
IActionResult
>
FacultyList
()
{
var
result
=
await
_tenantService
.
FacultyList
();
if
(
result
.
HasError
)
{
return
BadRequest
(
result
.
Message
);
}
return
Ok
(
result
.
Data
);
}
[
Authorize
(
Roles
=
UserTypes
.
UdelarAdmin
)]
[
HttpGet
(
"CourseList"
)]
public
async
Task
<
IActionResult
>
CourseList
()
{
var
result
=
await
_tenantService
.
CourseList
();
if
(
result
.
HasError
)
{
return
BadRequest
(
result
.
Message
);
}
return
Ok
(
result
.
Data
);
}
}
}
Loading