CurrencyMapper.cs
368 bytes
| 1 | using App.BLL.DTO; |
|---|---|
| 2 | using App.DTO.v1; |
| 3 | |
| 4 | namespace App.DTO.Mappers; |
| 5 | |
| 6 | public static class CurrencyMapper |
| 7 | { |
| 8 | public static CurrencyDto MapToDto(CurrencyBllDto currency) |
| 9 | { |
| 10 | return new CurrencyDto |
| 11 | { |
| 12 | Id = currency.Id, |
| 13 | Code = currency.Code, |
| 14 | Name = currency.Name, |
| 15 | Symbol = currency.Symbol |
| 16 | }; |
| 17 | } |
| 18 | } |
| 19 | |