25 lines
591 B
C#
25 lines
591 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 ModelDto : IModel
|
|
{
|
|
public int Id { get; set; }
|
|
public string Name { get; set; }
|
|
public int Price { get; set; }
|
|
public int MakeId { get; set; }
|
|
public ModelDto(IModel model)
|
|
{
|
|
Id = model.Id;
|
|
Name = model.Name;
|
|
Price = model.Price;
|
|
MakeId = model.MakeId;
|
|
}
|
|
}
|
|
}
|