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; } } } }