mirror of
https://github.com/Shchoholiev/shopping-assistant-api.git
synced 2025-04-04 16:49:36 +00:00
16 lines
488 B
C#
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);
|
|
}
|
|
|