aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data/Repositories/RoleRepository.cs
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2021-01-13 11:05:26 +0200
committertranstrike <transtrike@gmail.com>2021-01-13 11:05:26 +0200
commit6deaa6edcd8e347d5ed28ee3389cb8712cc64ea3 (patch)
tree620b8867f3b5f96aa76c0e5e38e985db91498696 /src/DevHive.Data/Repositories/RoleRepository.cs
parent8a18cdf741bed465b4b24626e15370c33365cf11 (diff)
downloadDevHive-6deaa6edcd8e347d5ed28ee3389cb8712cc64ea3.tar
DevHive-6deaa6edcd8e347d5ed28ee3389cb8712cc64ea3.tar.gz
DevHive-6deaa6edcd8e347d5ed28ee3389cb8712cc64ea3.zip
The return of the interfaces
Diffstat (limited to 'src/DevHive.Data/Repositories/RoleRepository.cs')
-rw-r--r--src/DevHive.Data/Repositories/RoleRepository.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/DevHive.Data/Repositories/RoleRepository.cs b/src/DevHive.Data/Repositories/RoleRepository.cs
index 0ca1646..4cd5b79 100644
--- a/src/DevHive.Data/Repositories/RoleRepository.cs
+++ b/src/DevHive.Data/Repositories/RoleRepository.cs
@@ -1,12 +1,13 @@
using System;
using System.Threading.Tasks;
using DevHive.Common.Models.Misc;
+using DevHive.Data.Interfaces;
using DevHive.Data.Models;
using Microsoft.EntityFrameworkCore;
namespace DevHive.Data.Repositories
{
- public class RoleRepository : IRepository<Role>
+ public class RoleRepository : IRoleRepository
{
private readonly DevHiveContext _context;
@@ -52,7 +53,7 @@ namespace DevHive.Data.Repositories
return await RepositoryMethods.SaveChangesAsync(this._context);
}
-
+
//Delete
public async Task<bool> DeleteAsync(Role entity)
{