public UnitOfWork(ApplicationDbContext context, gcsDbContext gcContext) { _context = context; _gcsContext = gcContext; }
public HttpUnitOfWork(ApplicationDbContext context, IHttpContextAccessor httpAccessor, gcsDbContext gcDbContext) : base(context, gcDbContext) { context.CurrentUserId = httpAccessor.HttpContext.User.FindFirst(OpenIdConnectConstants.Claims.Subject)?.Value?.Trim(); }