// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { DataConfig.Config(services, Configuration); DomainConfiguration.Config(services, Configuration); services.AddHttpContextAccessor(); services.AddMediatR(typeof(AddOrderCommand)); services.AddSwaggerGen(options => { options.SwaggerDoc("v1", new Microsoft.OpenApi.Models.OpenApiInfo { Version = "v1", Title = "LogStore API", Description = "API to order of pizza", Contact = new OpenApiContact { Name = "Jonatas Marins", Email = "*****@*****.**" } }); }); services.AddControllers(); }