PIBD_21_Basalov_A_D_Project.../project/ProjectTourAgency/Enities/Receipt.cs

34 lines
823 B
C#

using ProjectTourAgency.Enities.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace ProjectTourAgency.Enities;
public class Receipt
{
public int ClientId { get; private set; }
public DateTime Date { get; private set; }
public int TourId { get; private set; }
public int DiscountId { get; private set; }
public decimal FinalCost { get; private set; }
public static Receipt CreateEntity(int clientId, int tourId,int discountId, decimal finalCost)
{
return new Receipt
{
ClientId = clientId,
TourId = tourId,
DiscountId = discountId,
Date = DateTime.Now,
FinalCost = finalCost
};
}
}