diff options
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(); + } } } |
