public AccountController(IWebAppContext appContext , IAuthenticationService authenticationService , IOrganizationBaseService organizationBaseService ) : base(appContext) { _authenticationService = authenticationService; _organizationBaseService = organizationBaseService; }
public OrgDataServer(IHttpContextAccessor httpContext, IOrganizationBaseService organizationBaseService) { var uniqueName = httpContext.HttpContext.GetRouteOrQueryString("org")?.ToString(); if (uniqueName.IsNotEmpty()) { var baseOrg = organizationBaseService.FindByUniqueName(uniqueName); if (baseOrg != null) { this.OrganizationBaseId = baseOrg.OrganizationBaseId; this.DataServerName = baseOrg.DataServerName; this.DataAccountName = baseOrg.DataAccountName; this.DataPassword = baseOrg.DataPassword; this.DatabaseName = baseOrg.DatabaseName; this.UniqueName = baseOrg.UniqueName; } } }
public OrganizationFilterAttribute(IWebAppContext appContext, IOrganizationBaseService organizationBaseService) { _appContext = appContext; _organizationBaseService = organizationBaseService; }