title: ASP.NET Boilerplate: Get and GetAll is POST instead of GET method
body: <p>I'm using the ASP.NET Boilerplate framework to do a small project and I used Swagger UI Integration to check the API within the project. I noticed that the <code>Get</code> and <code>GetAll</code> are still using POST method while the others are in their respective HTTP verb for example <code>Create</code> is POST, <code>Edit</code> is UPDATE, etc... I read the documentation and tried what they suggested in this [Documentation]
  (<a href="https://aspnetboilerplate.com/Pages/Documents/Dynamic-Web-API#http-verbs" rel="nofollow noreferrer">https://aspnetboilerplate.com/Pages/Documents/Dynamic-Web-API#http-verbs</a>)
  <a href="https://i.stack.imgur.com/YB6Gx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YB6Gx.png" alt="app_tenant in the API"></a></p>
  
  <p><strong>Edit 1:</strong> Code for <code>UserAppServiceClass</code></p>
  
  <pre><code>[AbpAuthorize(PermissionNames.Pages_Users)]
  public class UserAppService : AsyncCrudAppService&lt;User, UserDto, long, PagedResultRequestDto, CreateUserDto, UpdateUserDto&gt;, IUserAppService
  {
      private readonly UserManager _userManager;
      private readonly RoleManager _roleManager;
      private readonly IRepository&lt;Role&gt; _roleRepository;
  
      public UserAppService(
          IRepository&lt;User, long&gt; repository, 
          UserManager userManager, 
          IRepository&lt;Role&gt; roleRepository, 
          RoleManager roleManager)
          : base(repository)
      {
          _userManager = userManager;
          _roleRepository = roleRepository;
          _roleManager = roleManager;
      }
  
      [HttpGet]
      public override async Task&lt;UserDto&gt; Get(EntityDto&lt;long&gt; input)
      {
          var user = await base.Get(input);
          var userRoles = await _userManager.GetRolesAsync(user.Id);
          user.Roles = userRoles.Select(ur =&gt; ur).ToArray();
          return user;
      }
  
      [HttpPost]
      public override async Task&lt;UserDto&gt; Create(CreateUserDto input)
      {
          CheckCreatePermission();
  
          var user = ObjectMapper.Map&lt;User&gt;(input);
  
          user.TenantId = AbpSession.TenantId;
          user.Password = new PasswordHasher().HashPassword(input.Password);
          user.IsEmailConfirmed = true;
  
          //Assign roles
          user.Roles = new Collection&lt;UserRole&gt;();
          foreach (var roleName in input.RoleNames)
          {
              var role = await _roleManager.GetRoleByNameAsync(roleName);
              user.Roles.Add(new UserRole(AbpSession.TenantId, user.Id, role.Id));
          }
  
          CheckErrors(await _userManager.CreateAsync(user));
  
          return MapToEntityDto(user);
      }
  
      [HttpPut]
      public override async Task&lt;UserDto&gt; Update(UpdateUserDto input)
      {
          CheckUpdatePermission();
  
          var user = await _userManager.GetUserByIdAsync(input.Id);
  
          MapToEntity(input, user);
  
          CheckErrors(await _userManager.UpdateAsync(user));
  
          if (input.RoleNames != null)
          {
              CheckErrors(await _userManager.SetRoles(user, input.RoleNames));
          }
  
          return await Get(input);
      }
  
      [HttpDelete]
      public override async Task Delete(EntityDto&lt;long&gt; input)
      {
          var user = await _userManager.GetUserByIdAsync(input.Id);
          await _userManager.DeleteAsync(user);
      }
  
      [HttpGet]
      public async Task&lt;ListResultDto&lt;RoleDto&gt;&gt; GetRoles()
      {
          var roles = await _roleRepository.GetAllListAsync();
          return new ListResultDto&lt;RoleDto&gt;(ObjectMapper.Map&lt;List&lt;RoleDto&gt;&gt;(roles));
      }
  
      protected override User MapToEntity(CreateUserDto createInput)
      {
          var user = ObjectMapper.Map&lt;User&gt;(createInput);
          return user;
      }
  
      protected override void MapToEntity(UpdateUserDto input, User user)
      {
          ObjectMapper.Map(input, user);
      }
  
      protected override IQueryable&lt;User&gt; CreateFilteredQuery(PagedResultRequestDto input)
      {
          return Repository.GetAllIncluding(x =&gt; x.Roles);
      }
  
      protected override async Task&lt;User&gt; GetEntityByIdAsync(long id)
      {
          var user = Repository.GetAllIncluding(x =&gt; x.Roles).FirstOrDefault(x =&gt; x.Id == id);
          return await Task.FromResult(user);
      }
  
      protected override IQueryable&lt;User&gt; ApplySorting(IQueryable&lt;User&gt; query, PagedResultRequestDto input)
      {
          return query.OrderBy(r =&gt; r.UserName);
      }
  
      protected virtual void CheckErrors(IdentityResult identityResult)
      {
          identityResult.CheckErrors(LocalizationManager);
      }
  }
  </code></pre>
  
  <p><strong>Edit 2:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/8z5kX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8z5kX.png" alt="app_user"></a></p>