Пример #1
0
        public static void Configure(IServiceCollection services, IConfiguration configuration)
        {
            services.AddControllers();
            services.AddCors();

            BLLConfiguration.Configure(services, configuration);
        }
Пример #2
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddAutoMapper(typeof(Startup));
            services.AddMvc();
            BLLConfiguration.Configure(services);

            //services.AddScoped<IUserService, UserService>();
            services.AddScoped <IPrintingEditionService, PrintingEditionService>();
            services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
        }