Adding postfix Async

This commit is contained in:
Artemy
2025-06-17 21:27:16 +07:00
parent 22de0e9630
commit de8d97e5bf
5 changed files with 48 additions and 48 deletions
+3 -3
View File
@@ -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);
}
+6 -6
View File
@@ -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 -4
View File
@@ -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);
}