2025-07-06 01:49:34 +03:30
|
|
|
|
using Hushian.Application.Contracts.Persistence;
|
|
|
|
|
using Hushian.Domain.Entites;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Hushian.Application.Services
|
|
|
|
|
{
|
|
|
|
|
public class UserService
|
|
|
|
|
{
|
|
|
|
|
private readonly IGenericRepository<User> _UserRepository;
|
2025-07-24 23:18:11 +03:30
|
|
|
|
|
|
|
|
|
public UserService(IGenericRepository<User> userRepository)
|
|
|
|
|
{
|
|
|
|
|
_UserRepository = userRepository;
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-06 01:49:34 +03:30
|
|
|
|
public async Task<bool> AnyUser(int UserID) =>await _UserRepository.Get().AnyAsync(a=>a.ID==UserID);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|