diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2020-12-15 20:13:24 +0200 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2020-12-15 20:13:37 +0200 |
| commit | 0f35d898c2d0bbc84196ad254dd94a26852e3e4e (patch) | |
| tree | b6a731bb8c32f0159da454a51dcc6354178a3e7c /src/DevHive.Data | |
| parent | 4adc2aecc81961430c7d73ff658b535a75e7685b (diff) | |
| download | DevHive-0f35d898c2d0bbc84196ad254dd94a26852e3e4e.tar DevHive-0f35d898c2d0bbc84196ad254dd94a26852e3e4e.tar.gz DevHive-0f35d898c2d0bbc84196ad254dd94a26852e3e4e.zip | |
Implemented RoleService and updated RoleRepository structure
Diffstat (limited to 'src/DevHive.Data')
| -rw-r--r-- | src/DevHive.Data/Repositories/RoleRepository.cs | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/DevHive.Data/Repositories/RoleRepository.cs b/src/DevHive.Data/Repositories/RoleRepository.cs index 1c40b04..b83a2e6 100644 --- a/src/DevHive.Data/Repositories/RoleRepository.cs +++ b/src/DevHive.Data/Repositories/RoleRepository.cs @@ -2,32 +2,47 @@ using System; using System.Threading.Tasks; using Data.Models.Interfaces.Database; using DevHive.Data.Models; +using Microsoft.EntityFrameworkCore; namespace DevHive.Data.Repositories { public class RoleRepository : IRepository<Role> { + private readonly DbContext _context; + + public RoleRepository(DbContext context) + { + this._context = context; + } + public async Task AddAsync(Role entity) { throw new NotImplementedException(); } - //Find entity by id public async Task<Role> GetByIdAsync(Guid id) { throw new NotImplementedException(); } - //Modify Entity from database public async Task EditAsync(Role newEntity) { throw new NotImplementedException(); } - //Delete Entity from database public async Task DeleteAsync(Role entity) { throw new NotImplementedException(); } + + public async Task<bool> DoesNameExist(string name) + { + throw new NotImplementedException(); + } + + public async Task<bool> DoesRoleExist(Guid id) + { + throw new NotImplementedException(); + } } } |
