Skip to content
Snippets Groups Projects

Feature/survey

Merged Enzo Santangelo Dodera requested to merge feature/survey into develop
Files
4
@@ -64,7 +64,7 @@ namespace Tsi1.Api.Controllers
[Authorize(Roles = UserTypes.FacultyAdmin + ", " + UserTypes.UdelarAdmin)]
[HttpGet("GetAllGlobalSurvey")]
public async Task<IActionResult> GetAllGlobalSurvey(int tenantId)
public async Task<IActionResult> GetAllGlobalSurveys(int tenantId)
{
var userType = HttpContext.User.Claims.FirstOrDefault(x => x.Type == ClaimTypes.Role).Value;
if (userType == UserTypes.FacultyAdmin)
@@ -72,7 +72,7 @@ namespace Tsi1.Api.Controllers
tenantId = int.Parse(HttpContext.User.Claims.FirstOrDefault(x => x.Type == "TenantId").Value);
}
var result = await _surveyService.GetAllGlobalSurvey(tenantId, userType);
var result = await _surveyService.GetAllGlobalSurveys(tenantId, userType);
if (result.HasError)
{
Loading