From 4b10a38765017e637b7571866b99f842ab86ec61 Mon Sep 17 00:00:00 2001 From: Ali Taherzadeh <85833410+AliThz@users.noreply.github.com> Date: Thu, 10 Apr 2025 10:29:18 +0330 Subject: [PATCH] Add Mapping Profile to WebAPI --- .../Session04/Session04.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/02_ProjectOrientedSessions/Session04/Session04.md b/02_ProjectOrientedSessions/Session04/Session04.md index 560dced..7b59db6 100644 --- a/02_ProjectOrientedSessions/Session04/Session04.md +++ b/02_ProjectOrientedSessions/Session04/Session04.md @@ -146,6 +146,24 @@ public class MappingProfile : Profile ```
+ +📂 Suggested Folder: WebAPI + +**Program.cs** +```cs + . + . + . + + builder.Services.AddAutoMapper(typeof(MappingProfile)); + + var app = builder.Build(); + + . + . + . +``` + # Result & Result Status (Amin) # IService & Service (Amin)