PIBD_21_Basalov_A_D_Project.../project/ProjectTourAgency/Enities/Discount.cs

26 lines
692 B
C#
Raw Normal View History

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
};
}
}