forked from ddrilling/AsbCloudServer
правка опечаток и "мусора" после дебага
This commit is contained in:
parent
973f1afb1b
commit
54178e8923
@ -60,12 +60,10 @@ namespace AsbCloudInfrastructure.Repository
|
|||||||
public async Task<IEnumerable<UserExtendedDto>> GetAllAsync(CancellationToken token)
|
public async Task<IEnumerable<UserExtendedDto>> GetAllAsync(CancellationToken token)
|
||||||
{
|
{
|
||||||
var dtos = (await GetCacheUserAsync(token)).ToList();
|
var dtos = (await GetCacheUserAsync(token)).ToList();
|
||||||
var listDtos = dtos.ToList();
|
|
||||||
if (dtos is null)
|
if (dtos is null)
|
||||||
return Enumerable.Empty<UserExtendedDto>();
|
return Enumerable.Empty<UserExtendedDto>();
|
||||||
|
for (var i = 0; i < dtos.Count; i++)
|
||||||
for (var i = 0; i < listDtos.Count; i++)
|
dtos[i].RoleNames = GetRolesNamesByIdUser(dtos[i].Id);
|
||||||
listDtos[i].RoleNames = GetRolesNamesByIdUser(listDtos[i].Id);
|
|
||||||
return dtos;
|
return dtos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user