Website Summary Files Commits Branches @commit @diff @stats
path: root / src / DevHive.Web / Controllers / RoleController.cs
diff options
context:
space:
mode:
Commit1bf2b4a03197743efc95f8df08e3b0ae1260f759 (patch)
Author
 transtrike <transtrike@gmail.com>
2020-12-15 21:51:20 +0200
Committer
 transtrike <transtrike@gmail.com>
2020-12-15 21:51:20 +0200
Files8aba0db11f13fe0dcc048fc407ce50b47ac4f512 /src/DevHive.Web/Controllers/RoleController.cs
DevHive-1bf2b4a03197743efc95f8df08e3b0ae1260f759.tar
DevHive-1bf2b4a03197743efc95f8df08e3b0ae1260f759.tar.gz
DevHive-1bf2b4a03197743efc95f8df08e3b0ae1260f759.zip
Parent13c74f612f392630d162746f939cf99b208ca4c2 (diff)
Renamed _service to _*func*Service
1 files changed, 7 insertions, 7 deletions
-rw-r--r--src/DevHive.Web/Controllers/RoleController.cs14
diff --git a/src/DevHive.Web/Controllers/RoleController.cs b/src/DevHive.Web/Controllers/RoleController.cs
index fb26594..15db95d 100644
--- a/src/DevHive.Web/Controllers/RoleController.cs
+++ b/src/DevHive.Web/Controllers/RoleController.cs
@@ -13,12 +13,12 @@ namespace DevHive.Web.Controllers
[Route("/api/[controller]")]
public class RoleController
{
- private readonly RoleService _service;
+ private readonly RoleService _roleService;
private readonly IMapper _roleMapper;
public RoleController(DevHiveContext context, IMapper mapper)
{
- this._service = new RoleService(context, mapper);
+ this._roleService = new RoleService(context, mapper);
}
[HttpPost]
@@ -27,13 +27,13 @@ namespace DevHive.Web.Controllers
RoleServiceModel roleServiceModel =
this._roleMapper.Map<RoleServiceModel>(createRoleWebModel);
- return this._service.CreateRole(roleServiceModel);
+ return this._roleService.CreateRole(roleServiceModel);
}
[HttpGet]
- public Task<IActionResult> Get(Guid id)
+ public Task<IActionResult> GetById(Guid id)
{
- return this._service.GetRoleById(id);
+ return this._roleService.GetRoleById(id);
}
[HttpPut]
@@ -42,13 +42,13 @@ namespace DevHive.Web.Controllers
RoleServiceModel roleServiceModel =
this._roleMapper.Map<RoleServiceModel>(updateRoleWebModel);
- return this._service.UpdateRole(roleServiceModel);
+ return this._roleService.UpdateRole(roleServiceModel);
}
[HttpDelete]
public Task<IActionResult> Delete(Guid id)
{
- return this._service.DeleteRole(id);
+ return this._roleService.DeleteRole(id);
}
}
}