2024-11-08 20:17:39 +04:00
|
|
|
|
using ProjectTourAgency.Enities.Enums;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ProjectTourAgency.Enities;
|
|
|
|
|
|
|
|
|
|
public class Discount
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; private set; }
|
2024-11-10 13:31:10 +04:00
|
|
|
|
public decimal DiscountPercent { get; private set; }
|
2024-11-08 20:17:39 +04:00
|
|
|
|
public ClientSocialStatus ClientSocialStatus { get; private set; }
|
2024-11-10 13:31:10 +04:00
|
|
|
|
public static Discount CreateEntity(int id,
|
|
|
|
|
ClientSocialStatus clientSocialStatus,decimal discountPercent)
|
2024-11-08 20:17:39 +04:00
|
|
|
|
{
|
|
|
|
|
return new Discount
|
|
|
|
|
{
|
|
|
|
|
Id = id,
|
|
|
|
|
ClientSocialStatus = clientSocialStatus,
|
|
|
|
|
DiscountPercent = discountPercent
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|