aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Controllers/RoleController.cs
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-01-14 15:43:46 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-01-14 15:43:46 +0200
commit7969a0d07fe7d7738fe84f7336b1cea800734c92 (patch)
treee8dacf4c101425a4c7a4e9997ffed64684da5b9e /src/DevHive.Web/Controllers/RoleController.cs
parent012dc76f5d26a796b1bece49b119629f10f45281 (diff)
downloadDevHive-7969a0d07fe7d7738fe84f7336b1cea800734c92.tar
DevHive-7969a0d07fe7d7738fe84f7336b1cea800734c92.tar.gz
DevHive-7969a0d07fe7d7738fe84f7336b1cea800734c92.zip
Fixed dependency injection for controller service interfaces in controllers
Diffstat (limited to 'src/DevHive.Web/Controllers/RoleController.cs')
-rw-r--r--src/DevHive.Web/Controllers/RoleController.cs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/DevHive.Web/Controllers/RoleController.cs b/src/DevHive.Web/Controllers/RoleController.cs
index 0a8f7a1..a5395e4 100644
--- a/src/DevHive.Web/Controllers/RoleController.cs
+++ b/src/DevHive.Web/Controllers/RoleController.cs
@@ -1,23 +1,22 @@
using System.Threading.Tasks;
-using DevHive.Data.Repositories;
-using DevHive.Services.Services;
using Microsoft.AspNetCore.Mvc;
using DevHive.Web.Models.Identity.Role;
using AutoMapper;
using System;
using DevHive.Common.Models.Identity;
+using DevHive.Services.Interfaces;
namespace DevHive.Web.Controllers
{
- [ApiController]
+ [ApiController]
[Route("/api/[controller]")]
//[Authorize(Roles = "Admin")]
public class RoleController
{
- private readonly RoleService _roleService;
+ private readonly IRoleService _roleService;
private readonly IMapper _roleMapper;
- public RoleController(RoleService roleService, IMapper mapper)
+ public RoleController(IRoleService roleService, IMapper mapper)
{
this._roleService = roleService;
this._roleMapper = mapper;