aboutsummaryrefslogtreecommitdiff
path: root/src/Data/DevHive.Data/Interfaces/ILanguageRepository.cs
blob: ea0e8c6d1e9b7c8a342c58bdab4ab7d430238b79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using DevHive.Data.Models;
using DevHive.Data.Repositories.Interfaces;

namespace DevHive.Data.Interfaces
{
	public interface ILanguageRepository : IRepository<Language>
	{
		HashSet<Language> GetLanguages();
		Task<Language> GetByNameAsync(string languageName);

		Task<bool> DoesLanguageExistAsync(Guid id);
		Task<bool> DoesLanguageNameExistAsync(string languageName);
	}
}