Add AutoMapper and update the interface of business services

This commit is contained in:
Sébastien André
2019-09-25 19:38:52 +02:00
parent cb105c13af
commit a2718e4ba7
17 changed files with 102 additions and 20 deletions

View File

@@ -3,8 +3,10 @@ using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using skydiveLogs_api.Ioc;
namespace skydiveLogs_api
{
public class Startup
@@ -24,6 +26,8 @@ namespace skydiveLogs_api
// IoC
var iocService = new IocService(services);
iocService.Configure();
services.AddAutoMapper(typeof(Mapper.ModelProfile));
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.