Browse Source

Merge pull request #134 from aspnetzero/user-crud

#109 Remove overloaded method (RoleRepository)
pull/138/head
Halil İbrahim Kalkan 8 years ago
committed by GitHub
parent
commit
d3276a3564
  1. 2
      src/Volo.Abp.Identity.Application/Volo/Abp/Identity/IdentityRoleAppService.cs
  2. 1
      src/Volo.Abp.Identity.Application/Volo/Abp/Identity/IdentityUserAppService.cs
  3. 3
      src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IIdentityRoleRepository.cs
  4. 5
      src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EfCoreIdentityRoleRepository.cs
  5. 5
      src/Volo.Abp.Identity.Web/Areas/Identity/Views/Users/Index.cshtml

2
src/Volo.Abp.Identity.Application/Volo/Abp/Identity/IdentityRoleAppService.cs

@ -39,7 +39,7 @@ namespace Volo.Abp.Identity
public async Task<List<IdentityRoleDto>> GetAllListAsync()
{
var list = await _roleRepository.GetAllListAsync();
var list = await _roleRepository.GetListAsync();
return ObjectMapper.Map<List<IdentityRole>, List<IdentityRoleDto>>(list);
}

1
src/Volo.Abp.Identity.Application/Volo/Abp/Identity/IdentityUserAppService.cs

@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

3
src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IIdentityRoleRepository.cs

@ -10,8 +10,5 @@ namespace Volo.Abp.Identity
Task<IdentityRole> FindByNormalizedNameAsync(string normalizedRoleName, CancellationToken cancellationToken);
Task<List<IdentityRole>> GetListAsync(string sorting, int maxResultCount, int skipCount, string filter);
//TODO: remove after a better design
Task<List<IdentityRole>> GetAllListAsync();
}
}

5
src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EfCoreIdentityRoleRepository.cs

@ -31,10 +31,5 @@ namespace Volo.Abp.Identity
).OrderBy(sorting ?? nameof(IdentityRole.Name))
.PageBy(skipCount, maxResultCount).ToListAsync();
}
public async Task<List<IdentityRole>> GetAllListAsync()
{
return await GetQueryable().ToListAsync();
}
}
}

5
src/Volo.Abp.Identity.Web/Areas/Identity/Views/Users/Index.cshtml

@ -1,11 +1,12 @@
@section styles {
<!-- TODO: Use minified on production, normal in development -->
<link rel="stylesheet" type="text/css" href="~/modules/identity/libs/datatables/datatables.min.css" />
<link rel="stylesheet" type="text/css" href="~/modules/identity/libs/datatables/datatables.css" />
<link rel="stylesheet" type="text/css" href="~/modules/identity/views/users/index.css" />
}
@section scripts {
<script type="text/javascript" src="~/modules/identity/libs/datatables/datatables.js"></script>
<!-- TODO: Use minified on production, normal in development -->
<script type="text/javascript" src="~/modules/identity/libs/datatables/datatables.min.js"></script>
<script type="text/javascript" src="~/modules/identity/views/users/index.js"></script>
}

Loading…
Cancel
Save