Website Summary Files Commits Branches @commit @diff @stats
path: root / src / DevHive.Data / Interfaces / IRoleRepository.cs
diff options
context:
space:
mode:
1 files changed, 15 insertions, 0 deletions
-rw-r--r--src/DevHive.Data/Interfaces/IRoleRepository.cs15
diff --git a/src/DevHive.Data/Interfaces/IRoleRepository.cs b/src/DevHive.Data/Interfaces/IRoleRepository.cs
new file mode 100644
index 0000000..48761db
--- /dev/null
+++ b/src/DevHive.Data/Interfaces/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
+{
+ public interface IRoleRepository : IRepository<Role>
+ {
+ Task<Role> GetByNameAsync(string name);
+
+ Task<bool> DoesNameExist(string name);
+ Task<bool> DoesRoleExist(Guid id);
+ }
+} \ No newline at end of file