2024-11-08 20:17:39 +04:00
|
|
|
|
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 ClientTour
|
|
|
|
|
{
|
2024-11-11 15:05:13 +04:00
|
|
|
|
public int Id { get; private set; }
|
2024-11-08 20:17:39 +04:00
|
|
|
|
public int ClientId { get; private set; }
|
|
|
|
|
public int TourId { get; private set; }
|
|
|
|
|
|
2024-11-11 15:05:13 +04:00
|
|
|
|
public int Cost { get; private set; }
|
2024-11-10 16:15:39 +04:00
|
|
|
|
|
2024-11-11 15:05:13 +04:00
|
|
|
|
public static ClientTour CreateEntity(int id,int clientId, int tourId, int cost)
|
2024-11-08 20:17:39 +04:00
|
|
|
|
{
|
|
|
|
|
return new ClientTour
|
|
|
|
|
{
|
2024-11-11 15:05:13 +04:00
|
|
|
|
Id = id,
|
2024-11-08 20:17:39 +04:00
|
|
|
|
ClientId = clientId,
|
|
|
|
|
TourId = tourId,
|
2024-11-11 15:05:13 +04:00
|
|
|
|
Cost = cost
|
2024-11-08 20:17:39 +04:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|