| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.Linq; |
| | | 4 | | using System.Threading.Tasks; |
| | | 5 | | using System.ComponentModel.DataAnnotations; |
| | | 6 | | using System.Runtime.Serialization; |
| | | 7 | | using WinSolutions.Sveta.Server.Data.DataModel.Entities; |
| | | 8 | | |
| | | 9 | | namespace SVETA.Api.Data.DTO.DiscountColorDTO |
| | | 10 | | { |
| | | 11 | | public class DiscountColorResponseDTO |
| | | 12 | | { |
| | 0 | 13 | | public DiscountColorResponseDTO() { } |
| | 0 | 14 | | public DiscountColorResponseDTO(DiscountColor data) |
| | 0 | 15 | | { |
| | 0 | 16 | | Id = data.Id; |
| | 0 | 17 | | DiscountLevel = data.DiscountLevel; |
| | 0 | 18 | | Color = data.LabelColor; |
| | 0 | 19 | | TextColor = data.TextColor; |
| | 0 | 20 | | Transparency = data.Transparency; |
| | 0 | 21 | | } |
| | 0 | 22 | | public long Id { get; set; } |
| | 0 | 23 | | public int DiscountLevel { get; set; } |
| | 0 | 24 | | public string Color { get; set; } |
| | 0 | 25 | | public string TextColor { get; set; } |
| | 0 | 26 | | public decimal Transparency { get; set; } |
| | | 27 | | } |
| | | 28 | | |
| | | 29 | | } |