Add Mapping Profile to WebAPI
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user