diff --git a/src/WorkFlowCheck.BL/Services/UserService.cs b/src/WorkFlowCheck.BL/Services/UserService.cs index f0d3c7d..88da185 100644 --- a/src/WorkFlowCheck.BL/Services/UserService.cs +++ b/src/WorkFlowCheck.BL/Services/UserService.cs @@ -340,6 +340,26 @@ namespace WorkFlowCheck.BL.Services return retVal; } - public Task> GetAllRoleCheckListTemplateHeadersAsync() => throw new NotImplementedException(); + public async Task> GetAllRoleCheckListTemplateHeadersAsync() + { + var retVal = new List(); + try + { + var results = await _dbContext.RoleCheckListTemplateHeaders + .Include(i => i.CheckListTemplateHeader) + .Include(i => i.Role) + .AsNoTracking() + .ToListAsync(); + if (results != null) + { + retVal = _mapper.Map>(results); + } + } + catch (Exception ex) + { + Log.Error(ex.Message); + } + return retVal; + } } } diff --git a/src/WorkFlowCheck.Web/Pages/UserAndRole/RoleCheckListTemplateHeadersPage.cshtml b/src/WorkFlowCheck.Web/Pages/UserAndRole/RoleCheckListTemplateHeadersPage.cshtml index ef8459a..3524528 100644 --- a/src/WorkFlowCheck.Web/Pages/UserAndRole/RoleCheckListTemplateHeadersPage.cshtml +++ b/src/WorkFlowCheck.Web/Pages/UserAndRole/RoleCheckListTemplateHeadersPage.cshtml @@ -1,5 +1,5 @@ @page -@model WorkFlowCheck.Web.Pages.RoleCheckListTemplateHeadersAndRole.RoleCheckListTemplateHeadersPageModel +@model WorkFlowCheck.Web.Pages.UserAndRole.RoleCheckListTemplateHeadersPageModel @{ ViewData["Title"] = "Szabályok - Ellenőrzési sablonok"; } @@ -11,25 +11,21 @@ - +
- - - - + + - - - - - + + +
IDFirst NameLast NameRoleCheckListTemplateHeaders NameE-mailRole nameTemplate name Action
IDFirst NameLast NameRoleCheckListTemplateHeaders NameE-mailActionRole nameTemplate nameAction
@@ -37,18 +33,16 @@ @section Scripts {