| | 1 | | using planora.Domain.Entities; |
| | 2 | |
|
| | 3 | | namespace planora.Application.Features.Activities.Queries.GetDetails; |
| | 4 | |
|
| | 5 | | public static class GetActivityDetailsMapper |
| | 6 | | { |
| | 7 | | public static GetActivityDetailsResponse MapToActivityDetailsResponse(this Activity entity) |
| | 8 | | { |
| 6 | 9 | | return new GetActivityDetailsResponse |
| 6 | 10 | | { |
| 6 | 11 | | Id = entity.Id, |
| 6 | 12 | | Name = entity.Name, |
| 6 | 13 | | Description = entity.Description, |
| 6 | 14 | | CreatedAt = entity.CreatedDate, |
| 6 | 15 | | LastUpdated = entity.UpdatedAt, |
| 6 | 16 | | IsActive = entity.IsActive, |
| 6 | 17 | | ActivityDate = entity.Date, |
| 6 | 18 | | Category = entity.Category, |
| 6 | 19 | | City = entity.City, |
| 6 | 20 | | Location = entity.Location, |
| 6 | 21 | | Longitude = entity.Longitude, |
| 6 | 22 | | Latitude = entity.Latitude |
| 6 | 23 | | }; |
| | 24 | | } |
| | 25 | | } |