BudgetCategoryMapper.cs
550 bytes
| 1 | using App.BLL.DTO; |
|---|---|
| 2 | using App.DTO.v1; |
| 3 | |
| 4 | namespace App.DTO.Mappers; |
| 5 | |
| 6 | public static class BudgetCategoryMapper |
| 7 | { |
| 8 | public static BudgetCategoryDto MapToDto(BudgetCategoryBllDto category) |
| 9 | { |
| 10 | return new BudgetCategoryDto |
| 11 | { |
| 12 | Id = category.Id, |
| 13 | TripId = category.TripId, |
| 14 | Name = category.Name, |
| 15 | IconName = category.IconName, |
| 16 | PlannedAmount = category.PlannedAmount, |
| 17 | SpentAmount = category.SpentAmount, |
| 18 | DisplayOrder = category.DisplayOrder |
| 19 | }; |
| 20 | } |
| 21 | } |
| 22 | |