aboutsummaryrefslogtreecommitdiff
path: root/src/Data/DevHive.Data/Interfaces/IRoleRepository.cs
blob: a1080bb8b9f821de9b468604392098fe493e2d3d (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);
	}
}