PIBD_21_Basalov_A_D_Project.../project/ProjectTourAgency/Enities/ClientTour.cs

30 lines
655 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 ClientTour
{
public int Id { get; private set; }
public int ClientId { get; private set; }
public int TourId { get; private set; }
public int Cost { get; private set; }
public static ClientTour CreateEntity(int id,int clientId, int tourId, int cost)
{
return new ClientTour
{
Id = id,
ClientId = clientId,
TourId = tourId,
Cost = cost
};
}
}