29 lines
741 B
C#
29 lines
741 B
C#
using CarShowroomDataModels.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CarShowroomDataModels.Views
|
|
{
|
|
public class EmployeeView : IEmployee
|
|
{
|
|
public int Id { get; set; }
|
|
[DisplayName("ФИО")]
|
|
public string Name { get; set; }
|
|
[DisplayName("Email")]
|
|
public string Email { get; set; }
|
|
[DisplayName("Пароль")]
|
|
public string Password { get; set; }
|
|
public EmployeeView(IEmployee model)
|
|
{
|
|
Id = model.Id;
|
|
Name = model.Name;
|
|
Email = model.Email;
|
|
Password = model.Password;
|
|
}
|
|
}
|
|
}
|