| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.Linq; |
| | | 4 | | using System.Threading.Tasks; |
| | | 5 | | using WinSolutions.Sveta.Server.Data.DataModel.Entities; |
| | | 6 | | |
| | | 7 | | namespace SVETA.Api.Data.DTO.AddressDTO |
| | | 8 | | { |
| | | 9 | | public class AddressRequestDTO |
| | | 10 | | { |
| | 0 | 11 | | public AddressRequestDTO() { } |
| | 0 | 12 | | public AddressRequestDTO(Address data) |
| | 0 | 13 | | { |
| | 0 | 14 | | Region = data.Region; |
| | 0 | 15 | | Index = data.Index; |
| | 0 | 16 | | District = data.District; |
| | 0 | 17 | | City = data.City; |
| | 0 | 18 | | Locality = data.Locality; |
| | 0 | 19 | | Street = data.Street; |
| | 0 | 20 | | House = data.House; |
| | 0 | 21 | | Housing = data.Housing; |
| | 0 | 22 | | Building = data.Building; |
| | 0 | 23 | | Office = data.Office; |
| | 0 | 24 | | } |
| | | 25 | | |
| | 0 | 26 | | public string FullAddress { get; set; } |
| | 0 | 27 | | public string Region { get; set; } |
| | 0 | 28 | | public string Index { get; set; } |
| | 0 | 29 | | public string District { get; set; } |
| | 0 | 30 | | public string City { get; set; } |
| | 0 | 31 | | public string Locality { get; set; } |
| | 0 | 32 | | public string Street { get; set; } |
| | 0 | 33 | | public string House { get; set; } |
| | 0 | 34 | | public string Housing { get; set; } |
| | 0 | 35 | | public string Building { get; set; } |
| | 0 | 36 | | public string Office { get; set; } |
| | | 37 | | } |
| | | 38 | | |
| | | 39 | | public class AddressResponsetDTO |
| | | 40 | | { |
| | | 41 | | public AddressResponsetDTO() { } |
| | | 42 | | public AddressResponsetDTO(Address data) |
| | | 43 | | { |
| | | 44 | | Id = data.Id; |
| | | 45 | | FullAddress = data.FullAddress; |
| | | 46 | | Region = data.Region; |
| | | 47 | | Index = data.Index; |
| | | 48 | | District = data.District; |
| | | 49 | | City = data.City; |
| | | 50 | | Locality = data.Locality; |
| | | 51 | | Street = data.Street; |
| | | 52 | | House = data.House; |
| | | 53 | | Housing = data.Housing; |
| | | 54 | | Building = data.Building; |
| | | 55 | | Office = data.Office; |
| | | 56 | | } |
| | | 57 | | |
| | | 58 | | public long Id { get; set; } |
| | | 59 | | public string FullAddress { get; set; } |
| | | 60 | | public string Region { get; set; } |
| | | 61 | | public string Index { get; set; } |
| | | 62 | | public string District { get; set; } |
| | | 63 | | public string City { get; set; } |
| | | 64 | | public string Locality { get; set; } |
| | | 65 | | public string Street { get; set; } |
| | | 66 | | public string House { get; set; } |
| | | 67 | | public string Housing { get; set; } |
| | | 68 | | public string Building { get; set; } |
| | | 69 | | public string Office { get; set; } |
| | | 70 | | } |
| | | 71 | | } |