From 9eb4d2f0162b65288f7a8d6d1bad445de456b9d9 Mon Sep 17 00:00:00 2001 From: Izzat Alsharif Date: Sat, 4 May 2024 17:19:57 +0300 Subject: [PATCH] Add CustomerDto --- RestaurantReservation/Application/DTOs/CustomerDto.cs | 10 ++++++++++ RestaurantReservation/Application/MapperProfile.cs | 3 +++ 2 files changed, 13 insertions(+) create mode 100644 RestaurantReservation/Application/DTOs/CustomerDto.cs diff --git a/RestaurantReservation/Application/DTOs/CustomerDto.cs b/RestaurantReservation/Application/DTOs/CustomerDto.cs new file mode 100644 index 0000000..3fdbb3f --- /dev/null +++ b/RestaurantReservation/Application/DTOs/CustomerDto.cs @@ -0,0 +1,10 @@ +namespace RestaurantReservation.Application.DTOs; + +public record CustomerDto( + int CustomerId, + string FirstName, + string LastName, + string Email, + string PhoneNumber) +{ +} \ No newline at end of file diff --git a/RestaurantReservation/Application/MapperProfile.cs b/RestaurantReservation/Application/MapperProfile.cs index 2d6496d..54ff742 100644 --- a/RestaurantReservation/Application/MapperProfile.cs +++ b/RestaurantReservation/Application/MapperProfile.cs @@ -25,5 +25,8 @@ public MapperProfile() CreateMap(); CreateMap(); + + CreateMap(); + CreateMap(); } } \ No newline at end of file