This commit is contained in:
mmrbnjd
2025-07-06 01:49:34 +03:30
parent e15790488e
commit 8b89957a93
10 changed files with 143 additions and 14 deletions

View File

@@ -0,0 +1,18 @@
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;
public async Task<bool> AnyUser(int UserID) =>await _UserRepository.Get().AnyAsync(a=>a.ID==UserID);
}
}