2024-07-25 17:18:03 +03:30
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Shared.DTOs
|
|
|
|
|
{
|
|
|
|
|
public class PromotionDto
|
|
|
|
|
{
|
|
|
|
|
public int ID { get; set; }
|
|
|
|
|
public string Name { get; set; }
|
2024-07-28 15:34:46 +03:30
|
|
|
|
public decimal TotalPrice { get { return promotionDetails==null ? 0 : promotionDetails.Sum(s => s.TPrice); } }
|
2024-07-25 17:18:03 +03:30
|
|
|
|
public ICollection<PromotionDetailDto> promotionDetails { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|