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; } public decimal DiscountPercent { get; private set; } public ClientSocialStatus ClientSocialStatus { get; private set; } public static Discount CreateEntity(int id, ClientSocialStatus clientSocialStatus,decimal discountPercent) { return new Discount { Id = id, ClientSocialStatus = clientSocialStatus, DiscountPercent = discountPercent }; } }