Skip to content

Commit

Permalink
Add CustomerDto
Browse files Browse the repository at this point in the history
  • Loading branch information
izzat5233 committed May 4, 2024
1 parent 67fa9ab commit 9eb4d2f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions RestaurantReservation/Application/DTOs/CustomerDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace RestaurantReservation.Application.DTOs;

public record CustomerDto(
int CustomerId,
string FirstName,
string LastName,
string Email,
string PhoneNumber)
{
}
3 changes: 3 additions & 0 deletions RestaurantReservation/Application/MapperProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@ public MapperProfile()

CreateMap<EmployeeRestaurantDetail, EmployeeRestaurantDetailDto>();
CreateMap<EmployeeRestaurantDetailDto, EmployeeRestaurantDetail>();

CreateMap<Customer, CustomerDto>();
CreateMap<CustomerDto, Customer>();
}
}

0 comments on commit 9eb4d2f

Please sign in to comment.