Add AutoMapper and update the interface of business services
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user