SUBD_PIbd-23_ZakharovRA/CarShowroom/CarShowroomDataModels/Dtos/ModeDto.cs
2024-05-03 10:27:07 +04:00

25 lines
588 B
C#

using CarShowroomContracts.AbstractModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CarShowroomContracts.Dtos
{
public class ModeDto : IModel
{
public int Id { get; set; }
public string Name { get; set; }
public int Price { get; set; }
public int MakeId { get; set; }
public ModeDto(IModel model)
{
Id = model.Id;
Name = model.Name;
Price = model.Price;
MakeId = model.MakeId;
}
}
}