ApiManutenzioni/ApiPolo/Startup.cs
2024-01-23 11:59:33 +01:00

773 lines
55 KiB
C#

using ApiPolo.Models;
using ApiPolo.Models.Discovery_dbcontext;
using ApiPolo.Models.Ferrari_dbcontext;
using ApiPolo.Models.Marrocco_dbcontext;
using ApiPolo.Models.Sicilia_dbcontext;
using ApiPolo.Models.Sarom_dbcontext;
using ApiPolo.Models.Gitoga_dbcontext;
using ApiPolo.Models.Lifta_dbcontext;
using Microsoft.EntityFrameworkCore;
using Microsoft.OpenApi.Models;
using ApiPolo.Models.Sinergo_dbcontext;
using ApiPolo.Services;
using ApiPolo.Models.Siet_dbcontext;
using ApiPolo.Models.PMS_dbcontext;
using ApiPolo.Models.VT_dbcontext;
using ApiPolo.Models.Tedesco_dbcontext;
namespace ApiPolo
{
/// <summary>Startup</summary>
public class Startup
{
/// <summary>Configuration</summary>
public IConfiguration Configuration { get; }
/// <summary>Startup</summary>
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
/// <summary>ConfigureServices</summary>
public void ConfigureServices(IServiceCollection services)
{
try
{
const int commandTimeoutInSeconds = 300;
services.AddControllers();
services.AddDbContext<ConfigurazioniDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("ApiStr")));
services.AddDbContext<TokenDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("ApiStr")));
#region FERRARI
services.AddDbContext<FERRA_CHIAMATEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("FERRA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<FERRA_TECNICIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("FERRA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<FERRA_RAPP_NEWDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("FERRA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<FERRA_MANPROG_TECDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("FERRA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<FERRA_CHIUSUREDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("FERRA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<FERRA_PRESEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("FERRA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<FERRA_CAUS_RAPPDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("FERRA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<FERRA_PAGAMDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("FERRA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<FERRA_MAGAZZINIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("FERRA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<FERRA_STO_RAPPDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("FERRA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<FERRA_CLIENTIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("FERRA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<FERRA_COMMESSEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("FERRA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<FERRA_RAPPORTINIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("FERRA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<FERRA_IMPIANTIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("FERRA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<FERRA_SOSTITUZIONIDbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("FERRA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
#endregion
#region MARROCCO
services.AddDbContext<MARRO_CHIAMATEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<MARRO_TECNICIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<MARRO_RAPP_NEWDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<MARRO_CHIUSUREDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<MARRO_MANPROG_TECDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<MARRO_PRESEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<MARRO_PAGAMDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<MARRO_CAUS_RAPPDbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<MARRO_CLIENTIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<MARRO_STO_RAPPDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<MARRO_RAPPORTINIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<MARRO_IMPIANTIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<MARRO_SOSTITUZIONIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<MARRO_NOTIFICHEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<MARRO_COMMESSEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<MARRO_CHIAMATE_TABLE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<MARRO_CHIAMATA_SERIALE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<MARRO_CHIAMATA_PROG_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<MARRO_VT_CHIUSURE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<MARRO_VT_TECNICI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<MARRO_VT_ANAG_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<MARRO_VT_IMPIANTI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
#endregion
#region SICILIA
services.AddDbContext<SICILIA_CHIAMATEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_CHIUSUREDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_TECNICIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_RAPP_NEWDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_MANPROG_TECDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_COMPO_IMPIADbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_SALDIARTDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_COMPO_IMPIA_TABLEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_MAG_NEWDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_MAGAZZINIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_STO_RAPPDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_CLIENTIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_CAUS_RAPPDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_PAGAMDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_PRESEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_COMMESSEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_TIMBRATUREDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_RAPPORTINIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_STO_IMPDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_IMPIANTIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_SOSTITUZIONI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_AZIENDA_RIF_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_CHIAMATA_PROG_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_CHIAMATA_SERIALE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_CHIAMATE_TABLE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SICILIA_CPWARN_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
#endregion
#region DISCOVERY
services.AddDbContext<DISCO_CHIAMATEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DISCO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<DISCO_CHIUSUREDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DISCO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<DISCO_TECNICIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DISCO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<DISCO_RAPP_NEWDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DISCO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<DISCO_MANPROG_TECDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DISCO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<DISCO_COMPO_IMPIADbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DISCO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<DISCO_SALDIARTDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DISCO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<DISCO_COMPO_IMPIA_TABLEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DISCO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<DISCO_MAG_NEWDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DISCO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<DISCO_MAGAZZINIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DISCO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<DISCO_STO_RAPPDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DISCO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<DISCO_CLIENTIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DISCO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<DISCO_CAUS_RAPPDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DISCO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<DISCO_PAGAMDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DISCO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<DISCO_PRESEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DISCO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<DISCO_RAPPORTINIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DISCO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<DISCO_AziendaRifDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DISCO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<DISCO_IMPIANTIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DISCO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<DISCO_SOSTITUZIONIDbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("DISCO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
#endregion
#region SAROM
services.AddDbContext<SAROM_CHIAMATEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SAROM")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SAROM_TECNICIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SAROM")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SAROM_RAPP_NEWDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SAROM")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SAROM_MANPROG_TECDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SAROM")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SAROM_CHIUSUREDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SAROM")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SAROM_PRESEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SAROM")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SAROM_CAUS_RAPPDbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("SAROM")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SAROM_PAGAMDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SAROM")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SAROM_MAGAZZINIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SAROM")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SAROM_STO_RAPPDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SAROM")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SAROM_CLIENTIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SAROM")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SAROM_COMMESSEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SAROM")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SAROM_RAPPORTINIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SAROM")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SAROM_IMPIANTIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SAROM")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SAROM_SOSTITUZIONIDbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("SAROM")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
#endregion
#region SINERGO
services.AddDbContext<SINERGO_TIMBRATUREDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SINER")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SINERGO_COMMESSEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SINER")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SINERGO_TECNICIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SINER")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
#endregion
#region GITOGA
services.AddDbContext<GITSR_CHIAMATE_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("GITSR")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<GITSR_TECNICI_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("GITSR")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<GITSR_RAPP_NEW_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("GITSR_MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<GITSR_CHIUSURE_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("GITSR")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<GITSR_MANPROG_TEC_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("GITSR")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<GITSR_PRESE_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("GITSR_MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<GITSR_PAGAM_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("GITSR")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<GITSR_CAUS_RAPP_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("GITSR")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<GITSR_CLIENTI_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("GITSR")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<GITSR_STO_RAPP_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("GITSR")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<GITSR_RAPPORTINI_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("GITSR")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<GITSR_IMPIANTI_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("GITSR")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<GITSR_SOSTITUZIONIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("GITSR")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
#endregion
#region LIFTA
services.AddDbContext<LIFTA_CHIAMATE_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFTA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<LIFTA_TECNICI_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFTA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<LIFTA_RAPP_NEW_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFTA_MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<LIFTA_CHIUSURE_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFTA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<LIFTA_MANPROG_TEC_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFTA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<LIFTA_PRESE_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFTA_MARRO")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<LIFTA_PAGAM_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFTA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<LIFTA_CAUS_RAPP_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFTA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<LIFTA_CLIENTI_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFTA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<LIFTA_STO_RAPP_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFTA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<LIFTA_RAPPORTINI_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFTA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<LIFTA_IMPIANTI_Dbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFTA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<LIFTA_SOSTITUZIONIDbcontext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFTA")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
#endregion
#region SIET
services.AddDbContext<SIET_CHIAMATE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_TECNICI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_RAPP_NEW_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_CHIUSURE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_MANPROG_TEC_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_PRESE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_PAGAM_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_CAUS_RAPP_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_CLIENTI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_STO_RAPP_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_RAPPORTINI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_IMPIANTI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_SOSTITUZIONI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_NOTIFICHE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_COMMESSE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_CHIAMATE_TABLE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_CHIAMATA_SERIALE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_CHIAMATA_PROG_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_COMPO_IMPIA_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_COMPO_IMPIA_TABLE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_SALDIART_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_MAG_NEW_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_MAGAZZINI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_TIMBRATURE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_STO_IMP_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_AZIENDA_RIF_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<SIET_CPWARN_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SIET2")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
#endregion
#region PMS
services.AddDbContext<PMS_AZIENDA_RIF_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_TECNICI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_MAGAZZINI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_CAUS_RAPP_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_CHIAMATA_PROG_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_CHIAMATA_SERIALE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_CHIAMATE_TABLE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_CHIAMATE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_CHIUSURE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_CLIENTI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_COMMESSE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_COMPO_IMPIA_TABLE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_COMPO_IMPIA_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_CPWARN_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_IMPIANTI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_MAG_NEW_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_MAGAZZINI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_MANPROG_TEC_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_PAGAM_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_PRESE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_RAPP_NEW_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_RAPPORTINI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_SALDIART_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_SOSTITUZIONI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_STO_IMP_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_STO_RAPP_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_TECNICI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_TIMBRATURE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_VT_ANAG_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_VT_CHIUSURE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_VT_IMPIANTI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<PMS_VT_TECNICI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("PMS")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
#endregion
#region VIRTUAL TASK
services.AddDbContext<VT_TECNICI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<VT_TECNICI_TABLE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<VT_CHIUSURE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<VT_CHIUSURE_TABLE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<VT_CONTI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<VT_CONTI_TABLE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<VT_RAPP_NEW_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<VT_RAPP_NEW_TABLE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<VT_IMPIANTI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<VT_IMPIANTI_MANAGER_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<VT_IMPIANTI_TABLE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<VT_CHIAMATE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<VT_CHIAMATE_MANAGER_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<VT_CHIAMATE_TABLE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<VT_PROGRESSIVI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<VT_AZIENDA_RIF_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<VT_REGISTRAZIONE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<VT_AZIENDE_PRESENTI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<VT_COMMESSE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<VT_COMMESSE_TABLE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<VT_DATI_AZIENDA_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<VT_RAPPORTINI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
services.AddDbContext<VT_Buoni_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
));
#endregion
services.AddSwaggerGen(gen =>
{
gen.ResolveConflictingActions(apiDescription => apiDescription.First());
//gen.SwaggerDoc("v1", new OpenApiInfo { Title = "POLO API WS2016", Version = "v3.3" });
DateTime oggi = DateTime.Now;
string dt = oggi.ToString();
//gen.SwaggerDoc("v1", new OpenApiInfo { Title = "POLO API TEST - v.app 1.13", Version = dt });
gen.SwaggerDoc("v1", new OpenApiInfo { Title = "POLO API - v.app 1.14", Version = dt });
var filePath = Path.Combine(System.AppContext.BaseDirectory, "ApiPolo.xml");
gen.IncludeXmlComments(filePath);
});
services.AddCronJob<MyCronJob1>(c =>
{
c.TimeZoneInfo = TimeZoneInfo.Local;
c.CronExpression = @"*/5 * * * *";
//c.CronExpression = @"* * * * *";
});
}
catch (Exception ex) {
Console.WriteLine(ex.Message);
}
}
/// <summary>Configure:This method gets called by the runtime. Use this method to configure the HTTP request pipeline. </summary>
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment() || env.IsProduction())
{
//app.UseDeveloperExceptionPage();
app.UseSwagger();
//app.UseSwaggerUI();
app.UseSwaggerUI(c =>
{
c.SwaggerEndpoint("/swagger/v1/swagger.json", "POLO API V2");
});
//app.UseHttpsRedirection();
}
app.UseRouting();
app.UseAuthentication();
app.UseAuthorization();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
app.UseStaticFiles();
}
}
}