2024-11-11 13:38:53 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ProjectTourAgency.Enities;
|
|
|
|
|
|
|
|
|
|
public class Route
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; private set; }
|
|
|
|
|
public string Destination { get; private set; } = string.Empty;
|
|
|
|
|
public string Departure { get; private set; } = string.Empty;
|
|
|
|
|
public int Duration { get; private set; }
|
2024-11-24 18:14:45 +04:00
|
|
|
|
public static Route CreateEntity(int id, string destination,
|
2024-11-11 13:38:53 +04:00
|
|
|
|
string departure, int duration)
|
|
|
|
|
{
|
|
|
|
|
return new Route
|
|
|
|
|
{
|
|
|
|
|
Id = id,
|
|
|
|
|
Destination = destination,
|
|
|
|
|
Departure = departure,
|
|
|
|
|
Duration = duration
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|