26 lines
568 B
C#
26 lines
568 B
C#
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 Tour
|
|
{
|
|
public int Id { get; private set; }
|
|
public DateTime DepartureDate { get; private set; }
|
|
public int Cost { get; private set; }
|
|
public static Tour CreateEntity(int id,
|
|
DateTime date,int cost)
|
|
{
|
|
return new Tour
|
|
{
|
|
Id = id,
|
|
DepartureDate = date,
|
|
Cost = cost
|
|
};
|
|
}
|
|
}
|