2024-05-02 15:24:13 -07:00

33 lines
853 B
C#

using Church.Net.DAL.EF;
using Microsoft.Extensions.DependencyInjection;
using WebAPI.Services;
namespace WebAPI.Logics.Core
{
public class LogicService
{
private readonly IServiceScopeFactory serviceScopeFactory;
private readonly IdentityService identityService;
public LogicService(
//ChurchNetContext dbContext
IServiceScopeFactory serviceScopeFactory,
IdentityService identityService
)
{
this.serviceScopeFactory = serviceScopeFactory;
this.identityService = identityService;
//DbContext = dbContext;
}
//public ChurchNetContext DbContext { get; }
public string CurrentUserId
{
get
{
return identityService.UserId;
}
}
}
}