//private readonly IOrganizationService _orgcConfiguration; public UserController( ControllerBaseParamModel controllerBaseParamModel, IUserService service //IRightService rightService, //IOrganizationService orgcConfiguration ) : base(controllerBaseParamModel) { _service = service; _configuration = Configuration; }
public ThemeController( ControllerBaseParamModel controllerBaseParamModel, IThemeService service, IColorService Colservice ) : base(controllerBaseParamModel) { _service = service; _Colservice = Colservice; _configuration = Configuration; }
protected ControllerBase(ControllerBaseParamModel controllerBaseParamModel) { Environment = controllerBaseParamModel.HostingEnvironment; UnitOfWork = controllerBaseParamModel.UnitOfWork; _session = controllerBaseParamModel.HttpContextAccessor.HttpContext.Session.GetComplexData <vmSession>("session"); if (Configuration == null) { var builder = new ConfigurationBuilder() .SetBasePath(Environment.ContentRootPath) .AddJsonFile(ControllerStaticData.APPLICATION_JSON, true, true); Configuration = builder.Build(); } }