SUBD_PIbd-23_ZakharovRA/CarShowroom/CarShowroomDataModels/Views/ClientView.cs

26 lines
629 B
C#
Raw Normal View History

2024-05-03 10:59:33 +04:00
using CarShowroomDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2024-05-05 22:02:53 +04:00
namespace CarShowroomDataModels.Views
2024-05-03 10:59:33 +04:00
{
public class ClientView : IClient
{
public int Id { get; set; }
[DisplayName("ФИО")]
public string Name { get; set; }
[DisplayName("Email")]
2024-05-05 21:21:25 +04:00
public string PhoneNumber { get; set; }
2024-05-03 10:59:33 +04:00
public ClientView(IClient model)
{
Id = model.Id;
Name = model.Name;
2024-05-05 21:21:25 +04:00
PhoneNumber = model.PhoneNumber;
2024-05-03 10:59:33 +04:00
}
}
}