From 1e12280a493354fb37a23d13781a7cde7c3e4e0c Mon Sep 17 00:00:00 2001 From: Enes Doner <95379442+EnesDONER@users.noreply.github.com> Date: Mon, 20 May 2024 17:19:53 +0300 Subject: [PATCH] Update docs/en/Community-Articles/2024-05-09-what-is-object-to-object-mapping/post.md Co-authored-by: Engincan VESKE --- .../2024-05-09-what-is-object-to-object-mapping/post.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/Community-Articles/2024-05-09-what-is-object-to-object-mapping/post.md b/docs/en/Community-Articles/2024-05-09-what-is-object-to-object-mapping/post.md index 8ec28b9b47..2757f25028 100644 --- a/docs/en/Community-Articles/2024-05-09-what-is-object-to-object-mapping/post.md +++ b/docs/en/Community-Articles/2024-05-09-what-is-object-to-object-mapping/post.md @@ -116,7 +116,7 @@ CreateMap().ForMember(c=>c.FullName,opt=> opt.MapFrom( .ForMember(c=>c.Age, opt=> opt.MapFrom(src=> DateTime.UtcNow.Year -src.BirthDay.Year)); ```` -This script concatenates and matches **FirstName** and **LastName** in the **FullName** field and subtracts **BirthDate** from today's year and assigns it to the customer's **Age** +This configuration concatenates and matches **FirstName** and **LastName** properties into the **FullName** property and subtracts **BirthDate** from today's year and assigns it to the customer's **Age**. After these configurations, if you make a request to the relevant endpoint, the output will look like as below: ![Swagger](./images/swagger2.png)