...
This commit is contained in:
@@ -12,6 +12,12 @@ namespace Hushian.Application.Services
|
||||
public class UserService
|
||||
{
|
||||
private readonly IGenericRepository<User> _UserRepository;
|
||||
|
||||
public UserService(IGenericRepository<User> userRepository)
|
||||
{
|
||||
_UserRepository = userRepository;
|
||||
}
|
||||
|
||||
public async Task<bool> AnyUser(int UserID) =>await _UserRepository.Get().AnyAsync(a=>a.ID==UserID);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user