Exemplo n.º 1
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            // Set up MVC controllers
            services.AddMvc();
            services.AddControllers();

            // Since we don't have a DB to connect to, hydrate model repositories here instead
            ProductRepository.hydrate();
            ManufacturerRepository.hydrate();
            HolidayRepository.hydrate();
        }