mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
Adding postfix Async
This commit is contained in:
@@ -4,7 +4,7 @@ namespace Govor.Core.Repositories;
|
||||
|
||||
public interface IUsersExist
|
||||
{
|
||||
public Task<bool> Exists(User user);
|
||||
public Task<bool> ExistsById(Guid id);
|
||||
public Task<bool> ExistsUsername(string username);
|
||||
public Task<bool> ExistsAsync(User user);
|
||||
public Task<bool> ExistsByIdAsync(Guid id);
|
||||
public Task<bool> ExistsUsernameAsync(string username);
|
||||
}
|
||||
@@ -4,10 +4,10 @@ namespace Govor.Core.Repositories;
|
||||
|
||||
public interface IUsersReader
|
||||
{
|
||||
public Task<IEnumerable<User>> GetAll();
|
||||
public Task<User> FindById(Guid id);
|
||||
public Task<List<User>> FindByRangeId(IEnumerable<Guid> ids);
|
||||
public Task<User> FindByUsername(string username);
|
||||
public Task<List<User>> FindByRangeUsernames(IEnumerable<string> usernames);
|
||||
public Task<List<User>> FindUsersByCreatedDate(DateOnly createdDate);
|
||||
public Task<IEnumerable<User>> GetAllAsync();
|
||||
public Task<User> FindByIdAsync(Guid id);
|
||||
public Task<List<User>> FindByRangeIdAsync(IEnumerable<Guid> ids);
|
||||
public Task<User> FindByUsernameAsync(string username);
|
||||
public Task<List<User>> FindByRangeUsernamesAsync(IEnumerable<string> usernames);
|
||||
public Task<List<User>> FindUsersByCreatedDateAsync(DateOnly createdDate);
|
||||
}
|
||||
@@ -4,8 +4,8 @@ namespace Govor.Core.Repositories;
|
||||
|
||||
public interface IUsersWriter
|
||||
{
|
||||
public Task Add(User user);
|
||||
public Task Update(User user);
|
||||
public Task Remove(User user);
|
||||
public Task Remove(Guid userId);
|
||||
public Task AddAsync(User user);
|
||||
public Task UpdateAsync(User user);
|
||||
public Task RemoveAsync(User user);
|
||||
public Task RemoveAsync(Guid userId);
|
||||
}
|
||||
Reference in New Issue
Block a user