aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data/Interfaces/IRoleRepository.cs
blob: 48761dba012849fb9b3da3c6939a9aae063c0ecd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
	}
}