mirror of
https://github.com/Shchoholiev/shopping-assistant-api.git
synced 2025-04-03 16:19:46 +00:00
13 lines
406 B
C#
13 lines
406 B
C#
using MongoDB.Bson;
|
|
using ShoppingAssistantApi.Domain.Entities;
|
|
using System.Linq.Expressions;
|
|
|
|
namespace ShoppingAssistantApi.Application.IRepositories;
|
|
|
|
public interface IRolesRepository : IBaseRepository<Role>
|
|
{
|
|
Task<Role> GetRoleAsync(ObjectId id, CancellationToken cancellationToken);
|
|
|
|
Task<Role> GetRoleAsync(Expression<Func<Role, bool>> predicate, CancellationToken cancellationToken);
|
|
}
|