33 lines
807 B
C#
33 lines
807 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 Duration { get; private set; }
|
|||
|
public int TourId { get; private set; }
|
|||
|
public int FinalCost { get; private set; }
|
|||
|
|
|||
|
public static Receipt CreateEntity(int clientId, int tourId, int duration, int finalCost)
|
|||
|
{
|
|||
|
return new Receipt
|
|||
|
{
|
|||
|
ClientId = clientId,
|
|||
|
TourId = tourId,
|
|||
|
Date = DateTime.Now,
|
|||
|
Duration = duration,
|
|||
|
FinalCost = finalCost
|
|||
|
|
|||
|
};
|
|||
|
}
|
|||
|
|
|||
|
}
|