// This method gets called by the runtime. Use this method to add services to the container.
 public void ConfigureServices(IServiceCollection services)
 {
     services.AddControllers();
     SwaggerConfiguration.AddSwagger(services);
     EntityFrameworkConfiguration.AddEntityFramework(services);
     JwtConfiguration.AddJwt(services, Configuration);
     DependencyInjectionConfiguration.AddDependencyInjection(services);
     AutoMapperConfiguration.AddAutoMapperSetup(services);
 }
        // This method gets called by the runtime. Use this method to add services to the container.
        // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddControllers();

            //configuração do swagger
            SwaggerConfiguration.AddSwagger(services);

            //configuração do EntityFramework
            EntityFrameworkConfiguration.AddPostgreSQLEntityFramework(services, Configuration);

            //configuração para autenticação por JWT
            JwtConfiguration.AddJwt(services, Configuration);

            //configuração para injeção de dependência
            DependencyInjectionConfiguration.AddDependencyInjection(services, Configuration);

            //configuração de CORS
            CorsConfiguration.AddCors(services);
        }