aboutsummaryrefslogtreecommitdiff
path: root/src/Data/DevHive.Data/Interfaces/ITechnologyRepository.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Data/DevHive.Data/Interfaces/ITechnologyRepository.cs')
-rw-r--r--src/Data/DevHive.Data/Interfaces/ITechnologyRepository.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Data/DevHive.Data/Interfaces/ITechnologyRepository.cs b/src/Data/DevHive.Data/Interfaces/ITechnologyRepository.cs
new file mode 100644
index 0000000..91c82ea
--- /dev/null
+++ b/src/Data/DevHive.Data/Interfaces/ITechnologyRepository.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+using DevHive.Data.Models;
+
+namespace DevHive.Data.Interfaces
+{
+ public interface ITechnologyRepository : IRepository<Technology>
+ {
+ Task<Technology> GetByNameAsync(string technologyName);
+ HashSet<Technology> GetTechnologies();
+
+ Task<bool> DoesTechnologyExistAsync(Guid id);
+ Task<bool> DoesTechnologyNameExistAsync(string technologyName);
+ }
+}