SUBD_PIbd-23_ZakharovRA/CarShowroom/CarShowroomDataModels/Dtos/SaleDto.cs
2024-05-05 22:02:53 +04:00

31 lines
885 B
C#

using CarShowroomContracts.AbstractModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CarShowroomDataModels.Dtos
{
public class SaleDto : ISale
{
public int Id { get; set; }
public DateTime SaleTime { get; set; }
public int Cost { get; set; }
public int? ClientId { get; set; }
public int? EmployeeId { get; set; }
public List<int> CarIds { get; set; } = new();
public List<int> ServiceIds { get; set; } = new();
public SaleDto(ISale model)
{
Id = model.Id;
SaleTime = model.SaleTime;
Cost = model.Cost;
ClientId = model.ClientId;
EmployeeId = model.EmployeeId;
CarIds = model.CarIds;
ServiceIds = model.ServiceIds;
}
}
}