diff options
| author | transtrike <transtrike@gmail.com> | 2021-01-15 16:45:30 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2021-01-15 16:45:30 +0200 |
| commit | 5514f1109cb3689fa81b29bb2d7dcf84cc05f65f (patch) | |
| tree | eb7804834b13f210403efa77bf0f0ece0218584f /src/DevHive.Data/Interfaces/Repositories/IRoleRepository.cs | |
| parent | e0c6b1a631fb50b2bb985a85ddf6af57cb76e09b (diff) | |
| download | DevHive-5514f1109cb3689fa81b29bb2d7dcf84cc05f65f.tar DevHive-5514f1109cb3689fa81b29bb2d7dcf84cc05f65f.tar.gz DevHive-5514f1109cb3689fa81b29bb2d7dcf84cc05f65f.zip | |
Extracted Interfaces from every DevHive.Data class; Tidied up the DevHive.Interfaces
Diffstat (limited to 'src/DevHive.Data/Interfaces/Repositories/IRoleRepository.cs')
| -rw-r--r-- | src/DevHive.Data/Interfaces/Repositories/IRoleRepository.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/DevHive.Data/Interfaces/Repositories/IRoleRepository.cs b/src/DevHive.Data/Interfaces/Repositories/IRoleRepository.cs new file mode 100644 index 0000000..e834369 --- /dev/null +++ b/src/DevHive.Data/Interfaces/Repositories/IRoleRepository.cs @@ -0,0 +1,15 @@ +using System; +using System.Threading.Tasks; +using DevHive.Data.Models; +using DevHive.Data.Repositories.Interfaces; + +namespace DevHive.Data.Interfaces.Repositories +{ + public interface IRoleRepository : IRepository<Role> + { + Task<Role> GetByNameAsync(string name); + + Task<bool> DoesNameExist(string name); + Task<bool> DoesRoleExist(Guid id); + } +} |
