Browse Source

Inject in the code behind.

pull/5399/head
Halil İbrahim Kalkan 6 years ago
parent
commit
ddc2b9a730
  1. 2
      modules/identity/src/Volo.Abp.Identity.Blazor/Pages/Identity/RoleManagement.razor
  2. 11
      modules/identity/src/Volo.Abp.Identity.Blazor/Pages/Identity/RoleManagement.razor.cs
  3. 2
      modules/identity/src/Volo.Abp.Identity.Blazor/_Imports.razor

2
modules/identity/src/Volo.Abp.Identity.Blazor/Pages/Identity/RoleManagement.razor

@ -5,9 +5,7 @@
@using Microsoft.Extensions.Localization
@using Volo.Abp.Application.Dtos
@using Volo.Abp.Identity.Localization
@inject IIdentityRoleAppService RoleAppService
@inject IStringLocalizer<IdentityResource> L
@inject IUiMessageService UiMessageService
@* ************************* PAGE HEADER ************************* *@
<Row>
<Column ColumnSize="ColumnSize.Is6">

11
modules/identity/src/Volo.Abp.Identity.Blazor/Pages/Identity/RoleManagement.razor.cs

@ -4,23 +4,28 @@ using System.Linq;
using System.Threading.Tasks;
using Blazorise;
using Blazorise.DataGrid;
using Microsoft.AspNetCore.Components;
using Volo.Abp.ObjectExtending;
using Volo.Abp.Application.Dtos;
using Volo.Abp.AspNetCore.Components.WebAssembly;
namespace Volo.Abp.Identity.Blazor.Pages.Identity
{
public partial class RoleManagement
{
[Inject] private IIdentityRoleAppService RoleAppService { get; set; }
[Inject] private IUiMessageService UiMessageService { get; set; }
private int _currentPage;
private string _currentSorting;
private int? _totalCount;
private IReadOnlyList<IdentityRoleDto> _roles;
private IdentityRoleCreateDto _newRole;
private Guid _editingRoleId;
private IdentityRoleUpdateDto _editingRole;
private Modal _createModal;
private Modal _editModal;

2
modules/identity/src/Volo.Abp.Identity.Blazor/_Imports.razor

@ -1,5 +1,5 @@
@using Microsoft.AspNetCore.Components.Web
@using Volo.Abp.AspNetCore.Components.WebAssembly
@using Volo.Abp.BlazoriseLib
@using Volo.Abp.BlazoriseUI
@using Blazorise
@using Blazorise.DataGrid
Loading…
Cancel
Save