erp-platform/api/src/Kurs.Platform.Application.Contracts/Orders/ProductDto.cs

23 lines
664 B
C#
Raw Normal View History

2025-08-11 06:34:44 +00:00
using System;
using Volo.Abp.Application.Dtos;
namespace Kurs.Platform.Orders;
public class ProductDto : EntityDto<Guid>
{
2025-10-07 06:28:16 +00:00
public Guid? TenantId { get; set; }
2025-08-11 06:34:44 +00:00
public string Name { get; set; }
public string Description { get; set; }
public string Category { get; set; }
public int Order { get; set; }
public decimal? MonthlyPrice { get; set; }
public decimal? YearlyPrice { get; set; }
public bool IsQuantityBased { get; set; }
public string ImageUrl { get; set; }
public string Unit =>
MonthlyPrice.HasValue && YearlyPrice.HasValue && MonthlyPrice != YearlyPrice
? "monthly"
: "yearly";
}