#109 Remove overloaded method (RoleRepository)

pull/134/head
alirıza adıyahşi 7 years ago
parent d7a733601a
commit db55157b6d

@ -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,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;

@ -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();
}
}

@ -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();
}
}
}

@ -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