| | | 1 | | using SVETA.Api.Data.DTO.DepartmentDTO; |
| | | 2 | | using System; |
| | | 3 | | using System.Collections.Generic; |
| | | 4 | | using System.ComponentModel.DataAnnotations; |
| | | 5 | | using SVETA.Api.Validation; |
| | | 6 | | using System.Linq; |
| | | 7 | | using System.Threading.Tasks; |
| | | 8 | | |
| | | 9 | | namespace SVETA.Api.Data.DTO.Prices.PriceTrend |
| | | 10 | | { |
| | | 11 | | public class PriceTrendRequestDTO |
| | | 12 | | { |
| | | 13 | | [DigitValidate(CanBeZero = false, CanBeNegative = true)] |
| | | 14 | | [Display(Name = "Идентификатор подразделения")] |
| | 0 | 15 | | public long DepartmentId { get; set; } |
| | | 16 | | [Required] |
| | 0 | 17 | | public DateTimeOffset BeginDate { get; set; } |
| | | 18 | | } |
| | | 19 | | |
| | | 20 | | public class PriceTrendDetailRequestDTO |
| | | 21 | | { |
| | | 22 | | [DigitValidate(CanBeZero = false, CanBeNegative = true)] |
| | | 23 | | [Display(Name = "Идентификатор товара")] |
| | | 24 | | public long GoodId { get; set; } |
| | | 25 | | [DigitValidate] |
| | | 26 | | [Display(Name = "Новая цена")] |
| | | 27 | | public decimal PriceNew { get; set; } |
| | | 28 | | [DigitValidate] |
| | | 29 | | [Display(Name = "Старая цена")] |
| | | 30 | | public decimal PriceOld { get; set; } |
| | | 31 | | } |
| | | 32 | | } |