// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { BootStrap.Configure(services, Configuration.GetConnectionString("DefaultConnection")); services.AddMvc(x => { x.Filters.Add(typeof(CustomExceptionFilter)); }); }
static void Main() { BootStrap.Configure(); IControllerFactory lContFactory = BootStrap.GetControllerFactory(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new ModoAdministrador(lContFactory)); Application.Run(new Player()); }