2024-11-08 20:17:39 +04:00
|
|
|
|
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; }
|
|
|
|
|
|
2024-11-10 14:27:32 +04:00
|
|
|
|
public int DiscountId { get; private set; }
|
|
|
|
|
public decimal FinalCost { get; private set; }
|
|
|
|
|
|
|
|
|
|
public static Receipt CreateEntity(int clientId, int tourId,int discountId, decimal finalCost)
|
2024-11-08 20:17:39 +04:00
|
|
|
|
{
|
|
|
|
|
return new Receipt
|
|
|
|
|
{
|
|
|
|
|
ClientId = clientId,
|
|
|
|
|
TourId = tourId,
|
2024-11-10 14:27:32 +04:00
|
|
|
|
DiscountId = discountId,
|
2024-11-08 20:17:39 +04:00
|
|
|
|
Date = DateTime.Now,
|
|
|
|
|
FinalCost = finalCost
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|