32 lines
701 B
C#
32 lines
701 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ProjectGarage.Entities;
|
|
|
|
public class Route
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
public string RouteName { get; set; } = string.Empty;
|
|
|
|
public string StartP { get; set; } = string.Empty;
|
|
|
|
public string FinalP { get; set; } = string.Empty;
|
|
|
|
public int Length { get; set; }
|
|
|
|
public static Route CreateRoute(int id,string name, string startp, string finalp, int len)
|
|
{
|
|
return new Route() {
|
|
Id = id,
|
|
RouteName = name,
|
|
StartP = startp,
|
|
FinalP = finalp,
|
|
Length = len
|
|
};
|
|
}
|
|
}
|