From 9256bff867451be136feb2e52720cdfa65f09abd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Tue, 12 Sep 2017 15:52:42 +0300 Subject: [PATCH] Fixed AbpIdentityHttpApiModule. --- .../Volo/Abp/Identity/IUserAppService.cs | 2 +- .../Volo/Abp/Identity/UserAppService.cs | 2 +- .../Volo/Abp/Identity/HttpApiUserAppService.cs | 2 +- .../Volo/Abp/Identity/AbpIdentityHttpApiModule.cs | 2 +- .../Volo/Abp/Identity/IdentityUsersController.cs | 4 ++-- .../Areas/Identity/Controllers/UsersController.cs | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Volo.Abp.Identity.Application.Contracts/Volo/Abp/Identity/IUserAppService.cs b/src/Volo.Abp.Identity.Application.Contracts/Volo/Abp/Identity/IUserAppService.cs index a56bc6f038..4d6102464d 100644 --- a/src/Volo.Abp.Identity.Application.Contracts/Volo/Abp/Identity/IUserAppService.cs +++ b/src/Volo.Abp.Identity.Application.Contracts/Volo/Abp/Identity/IUserAppService.cs @@ -7,7 +7,7 @@ namespace Volo.Abp.Identity { public interface IUserAppService : IApplicationService { - Task> GetAll(); + Task> Get(); Task Get(Guid id); } diff --git a/src/Volo.Abp.Identity.Application/Volo/Abp/Identity/UserAppService.cs b/src/Volo.Abp.Identity.Application/Volo/Abp/Identity/UserAppService.cs index 60befaf1cd..39b35359fb 100644 --- a/src/Volo.Abp.Identity.Application/Volo/Abp/Identity/UserAppService.cs +++ b/src/Volo.Abp.Identity.Application/Volo/Abp/Identity/UserAppService.cs @@ -17,7 +17,7 @@ namespace Volo.Abp.Identity _userRepository = userRepository; } - public async Task> GetAll() + public async Task> Get() { var users = await _userRepository.GetListAsync(); diff --git a/src/Volo.Abp.Identity.HttpApi.Client/Volo/Abp/Identity/HttpApiUserAppService.cs b/src/Volo.Abp.Identity.HttpApi.Client/Volo/Abp/Identity/HttpApiUserAppService.cs index 347df1537b..35609a5b06 100644 --- a/src/Volo.Abp.Identity.HttpApi.Client/Volo/Abp/Identity/HttpApiUserAppService.cs +++ b/src/Volo.Abp.Identity.HttpApi.Client/Volo/Abp/Identity/HttpApiUserAppService.cs @@ -17,7 +17,7 @@ namespace Volo.Abp.Identity _options = options.Value; } - public async Task> GetAll() + public async Task> Get() { using (var client = new HttpClient()) { diff --git a/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/AbpIdentityHttpApiModule.cs b/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/AbpIdentityHttpApiModule.cs index 10fc94d0af..d836c64e5a 100644 --- a/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/AbpIdentityHttpApiModule.cs +++ b/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/AbpIdentityHttpApiModule.cs @@ -9,7 +9,7 @@ namespace Volo.Abp.Identity { public override void ConfigureServices(IServiceCollection services) { - services.AddAssemblyOf(); + services.AddAssemblyOf(); } } } \ No newline at end of file diff --git a/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/IdentityUsersController.cs b/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/IdentityUsersController.cs index 40c2f5a151..63e20597df 100644 --- a/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/IdentityUsersController.cs +++ b/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/IdentityUsersController.cs @@ -18,9 +18,9 @@ namespace Volo.Abp.Identity [HttpGet] [Route("")] - public Task> GetAll() + public Task> Get() { - return _userAppService.GetAll(); + return _userAppService.Get(); } [HttpGet] diff --git a/src/Volo.Abp.Identity.Web/Areas/Identity/Controllers/UsersController.cs b/src/Volo.Abp.Identity.Web/Areas/Identity/Controllers/UsersController.cs index 07b7e86730..39996939bb 100644 --- a/src/Volo.Abp.Identity.Web/Areas/Identity/Controllers/UsersController.cs +++ b/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 Index() { - var result = await _userAppService.GetAll(); + var result = await _userAppService.Get(); return View(result.Items); } }