shopping-assistant-api/ShoppingAssistantApi.Application/IRepositories/IRolesRepository.cs
2023-09-22 23:02:20 +03:00

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);
}