From 7f39f37e0aecb51abc2cf43f72d7f7bb40cc6ddc Mon Sep 17 00:00:00 2001 From: Enes Doner Date: Thu, 9 May 2024 14:59:30 +0300 Subject: [PATCH] update article --- .../2024-05-09-what-is-object-to-object-mapping/post.md | 3 ++- 1 file changed, 2 insertions(+), 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 abc69144a4..aeb341a42d 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 @@ -114,7 +114,8 @@ CreateMap().ForMember(c=>c.FullName,opt=> opt.MapFrom( .ForMember(c=>c.Age, opt=> opt.MapFrom(src=> DateTime.UtcNow.Year -src.BirthDay.Year)); ```` -When you make the request, your output will look like this. +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** +When you make a request, your output will look like the one below. ![Swagger](./images/swagger2.png)