WORD -> PDF

This commit is contained in:
2025-03-27 11:13:42 +01:00
parent cb38e869a1
commit 04cca012f4
16 changed files with 808 additions and 7 deletions
@@ -17,6 +17,6 @@ namespace WorkFlowCheck.Web.Services.Interfaces
Task<List<UserRoleDTO>> GetAllUserRoles();
Task<ApiResponseDTO<UserRoleDTO>> UpdateUserRole(UserRoleDTO userRoleDTO);
Task<List<RoleCheckListTemplateHeaderDTO>> GetAllRoleCheckListTemplates();
}
}
@@ -265,5 +265,26 @@ namespace WorkFlowCheck.Web.Services
}
}
public async Task<List<RoleCheckListTemplateHeaderDTO>> GetAllRoleCheckListTemplates()
{
string endpoint = $"{_httpClient.BaseAddress}api/User/GetAllRoleCheckListTemplateHeaders";
var retVal = new List<RoleCheckListTemplateHeaderDTO>();
try
{
var response = await _httpClient.GetFromJsonAsync<ApiResponseDTO<List<RoleCheckListTemplateHeaderDTO>>>(endpoint);
if (response != null)
{
if (response.IsSuccess)
{
return response.Data;
}
}
}
catch (Exception ex)
{
Log.Error(ex.Message);
}
return retVal;
}
}
}