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