-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathResponseVoucherAdminDto.cs
More file actions
30 lines (28 loc) · 983 Bytes
/
ResponseVoucherAdminDto.cs
File metadata and controls
30 lines (28 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Text;
namespace ShoeStore.Application.DTOs.VoucherDtos
{
public class ResponseVoucherAdminDto
{
public Guid VoucherGuid { get; set; }
public string? VoucherName { get; set; }
public decimal Discount { get; set; } = 0;
public int? VoucherScope { get; set; }
public int? DiscountType { get; set; }
public decimal? MaxPriceDiscount { get; set; }
public decimal? MinOrderPrice { get; set; }
private DateTime? _validFrom;
public DateTime? ValidFrom
{
get => _validFrom;
set => _validFrom = value.HasValue ? DateTime.SpecifyKind(value.Value, DateTimeKind.Utc) : null;
}
private DateTime? _validTo;
public DateTime? ValidTo
{
get => _validTo;
set => _validTo = value.HasValue ? DateTime.SpecifyKind(value.Value, DateTimeKind.Utc) : null;
}
}
}