Browse Source

Fixed AbpIdentityHttpApiModule.

pull/96/head
Halil İbrahim Kalkan 9 years ago
parent
commit
9256bff867
  1. 2
      src/Volo.Abp.Identity.Application.Contracts/Volo/Abp/Identity/IUserAppService.cs
  2. 2
      src/Volo.Abp.Identity.Application/Volo/Abp/Identity/UserAppService.cs
  3. 2
      src/Volo.Abp.Identity.HttpApi.Client/Volo/Abp/Identity/HttpApiUserAppService.cs
  4. 2
      src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/AbpIdentityHttpApiModule.cs
  5. 4
      src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/IdentityUsersController.cs
  6. 2
      src/Volo.Abp.Identity.Web/Areas/Identity/Controllers/UsersController.cs

2
src/Volo.Abp.Identity.Application.Contracts/Volo/Abp/Identity/IUserAppService.cs

@ -7,7 +7,7 @@ namespace Volo.Abp.Identity
{ {
public interface IUserAppService : IApplicationService public interface IUserAppService : IApplicationService
{ {
Task<ListResultDto<IdentityUserDto>> GetAll(); Task<ListResultDto<IdentityUserDto>> Get();
Task<IdentityUserDto> Get(Guid id); Task<IdentityUserDto> Get(Guid id);
} }

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

@ -17,7 +17,7 @@ namespace Volo.Abp.Identity
_userRepository = userRepository; _userRepository = userRepository;
} }
public async Task<ListResultDto<IdentityUserDto>> GetAll() public async Task<ListResultDto<IdentityUserDto>> Get()
{ {
var users = await _userRepository.GetListAsync(); var users = await _userRepository.GetListAsync();

2
src/Volo.Abp.Identity.HttpApi.Client/Volo/Abp/Identity/HttpApiUserAppService.cs

@ -17,7 +17,7 @@ namespace Volo.Abp.Identity
_options = options.Value; _options = options.Value;
} }
public async Task<ListResultDto<IdentityUserDto>> GetAll() public async Task<ListResultDto<IdentityUserDto>> Get()
{ {
using (var client = new HttpClient()) using (var client = new HttpClient())
{ {

2
src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/AbpIdentityHttpApiModule.cs

@ -9,7 +9,7 @@ namespace Volo.Abp.Identity
{ {
public override void ConfigureServices(IServiceCollection services) public override void ConfigureServices(IServiceCollection services)
{ {
services.AddAssemblyOf<AbpIdentityApplicationModule>(); services.AddAssemblyOf<AbpIdentityHttpApiModule>();
} }
} }
} }

4
src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/IdentityUsersController.cs

@ -18,9 +18,9 @@ namespace Volo.Abp.Identity
[HttpGet] [HttpGet]
[Route("")] [Route("")]
public Task<ListResultDto<IdentityUserDto>> GetAll() public Task<ListResultDto<IdentityUserDto>> Get()
{ {
return _userAppService.GetAll(); return _userAppService.Get();
} }
[HttpGet] [HttpGet]

2
src/Volo.Abp.Identity.Web/Areas/Identity/Controllers/UsersController.cs

@ -16,7 +16,7 @@ namespace Volo.Abp.Identity.Web.Areas.Identity.Controllers
public async Task<ActionResult> Index() public async Task<ActionResult> Index()
{ {
var result = await _userAppService.GetAll(); var result = await _userAppService.Get();
return View(result.Items); return View(result.Items);
} }
} }

Loading…
Cancel
Save