31 lines
885 B
C#
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;
|
|
}
|
|
}
|
|
}
|