Add Mapping Profile to WebAPI

This commit is contained in:
Ali Taherzadeh
2025-04-10 10:29:18 +03:30
committed by GitHub
parent 4fafd3f202
commit 4b10a38765
@@ -146,6 +146,24 @@ public class MappingProfile : Profile
``` ```
<br> <br>
📂 Suggested Folder: WebAPI
**Program.cs**
```cs
.
.
.
builder.Services.AddAutoMapper(typeof(MappingProfile));
var app = builder.Build();
.
.
.
```
# Result & Result Status (Amin) # Result & Result Status (Amin)
# IService & Service (Amin) # IService & Service (Amin)