Church.Net.API/WebAPI/Logics/Core/LogicService.cs
2022-10-02 09:50:42 -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;
}
}
}
}