Пример #1
0
 // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
 public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
 {
     if (env.IsDevelopment())
     {
         app.UseDeveloperExceptionPage();
     }
     app.UseStaticFiles();
     app.UseSwagger();
     app.UseSwaggerUI(c =>
     {
         c.SwaggerEndpoint("../swagger/v1/swagger.json", "API Pago");
     });
     app.UseHttpsRedirection();
     app.UseRouting();
     app.UseCors(AllowSpecificOrigins); //Between routing and endpoints
     app.UseAuthorization();
     app.UseEndpoints(endpoints =>
     {
         endpoints.MapControllers().RequireCors(AllowSpecificOrigins);
     });
     versionAPI.EnviarInicioVersion("1.1.3", "APILOC");
     versionAPI.VersionServicioPago2();
 }
Пример #2
0
        public void InicioVersion([FromBody] Versiones APPvrs)
        {
            VersionamientoService version = new VersionamientoService();

            version.EnviarInicioVersion(APPvrs.Version, APPvrs.APP);
        }