31 lines
860 B
C#
31 lines
860 B
C#
using CarShowroomContracts.AbstractModels;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CarShowroomDatabaseStorage.Entities
|
|
{
|
|
public class Sale : 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; }
|
|
public List<int> ServiceIds { get; set; }
|
|
public Sale(ISale sale)
|
|
{
|
|
Id = sale.Id;
|
|
SaleTime = sale.SaleTime;
|
|
Cost = sale.Cost;
|
|
ClientId = sale.ClientId;
|
|
EmployeeId = sale.EmployeeId;
|
|
CarIds = sale.CarIds;
|
|
ServiceIds = sale.ServiceIds;
|
|
}
|
|
}
|
|
}
|