/// <summary> /// This method gets called by the runtime. Use this method to add services to the container. /// </summary> /// <param name="services"></param> public void ConfigureServices(IServiceCollection services) { ConfigureServicesCommon.ConfigureServices(services, Configuration); ConfigureServicesSwagger.ConfigureServices(services, Configuration); ConfigureServicesCors.ConfigureServices(services, Configuration); ConfigureServicesControllers.ConfigureServices(services); DependencyContainer.Common(services); NimbleDependencyContainer.ConfigureServices(services); }
/// <summary> /// This method gets called by the runtime. Use this method to add services to the container. /// </summary> /// <param name="services"></param> public void ConfigureServices(IServiceCollection services) { ConfigureServicesCommon.ConfigureServices(services, Configuration); ConfigureServicesSwagger.ConfigureServices(services, Configuration); ConfigureServicesCors.ConfigureServices(services, Configuration); ConfigureServicesControllers.ConfigureServices(services); DependencyContainer.Common(services); DependencyContainer.Validators(services); DependencyContainer.ViewModelFactories(services); DependencyContainer.EntityManagers(services); }