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

16 lines
488 B
C#

using MongoDB.Bson;
using ShoppingAssistantApi.Domain.Entities;
using System.Linq.Expressions;
namespace ShoppingAssistantApi.Application.IRepositories;
public interface IUsersRepository : IBaseRepository<User>
{
Task<User> GetUserAsync(ObjectId id, CancellationToken cancellationToken);
Task<User> GetUserAsync(Expression<Func<User, bool>> predicate, CancellationToken cancellationToken);
Task<User> UpdateUserAsync(User user, CancellationToken cancellationToken);
}