diff --git a/Startup.cs b/Startup.cs index ac49f9d..6a90832 100644 --- a/Startup.cs +++ b/Startup.cs @@ -16,7 +16,7 @@ public Startup(IConfiguration configuration) // This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { - services.AddAutoMapper(typeof(Startup)); + services.AddAutoMapper(cfg => cfg.AddProfile()); AmazonDynamoDBConfig clientConfig = new AmazonDynamoDBConfig(); clientConfig.RegionEndpoint = RegionEndpoint.USEast1; diff --git a/TodoApi.csproj b/TodoApi.csproj index 9dc75cb..0607603 100644 --- a/TodoApi.csproj +++ b/TodoApi.csproj @@ -1,18 +1,16 @@ - - - - Exe - net7.0 - enable - disable - - - - - - - - - - - + + + + Exe + net7.0 + enable + disable + + + + + + + + +