ViewModel
This commit is contained in:
parent
d9e6204ee8
commit
26f6db4cbf
@ -0,0 +1,26 @@
|
||||
using FurnitureFactoryDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FurnitureContracts.ViewModel
|
||||
{
|
||||
public class FurnitureViewModel : IFurnitureModel
|
||||
{
|
||||
[DisplayName("Название")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
[DisplayName("Цвет")]
|
||||
|
||||
public string Color { get; set; } = string.Empty;
|
||||
[DisplayName("Тип")]
|
||||
|
||||
public string Type { get; set; } = string.Empty;
|
||||
|
||||
public Dictionary<int, IMaterialModel> FurnitureMaterial { get; set; }
|
||||
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
using FurnitureFactoryDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FurnitureContracts.ViewModel
|
||||
{
|
||||
public class HeadsetModuleViewModel : IHeadsetModuleModel
|
||||
{
|
||||
[DisplayName("Стиль")]
|
||||
public string Style { get; set; } = string.Empty;
|
||||
[DisplayName("Цена")]
|
||||
public int Cost { get; set; }
|
||||
|
||||
public int UserID { get; set; }
|
||||
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
@ -10,6 +10,7 @@ namespace FurnitureContracts.ViewModel
|
||||
{
|
||||
public class HeadsetViewModel
|
||||
{
|
||||
[DisplayName("Цена")]
|
||||
public int Cost { get; set; }
|
||||
|
||||
[DisplayName("Размер")]
|
||||
|
@ -0,0 +1,23 @@
|
||||
using FurnitureFactoryDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FurnitureContracts.ViewModel
|
||||
{
|
||||
|
||||
public class MaterialViewModel : IMaterialModel
|
||||
{
|
||||
[DisplayName("Название")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
[DisplayName("Цена")]
|
||||
public int Cost { get; set; }
|
||||
|
||||
public int userID { get; set; }
|
||||
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
@ -7,7 +7,7 @@ namespace FurnitureContracts.ViewModel
|
||||
{
|
||||
[DisplayName("Название")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
[DisplayName("Адресс")]
|
||||
[DisplayName("Адрес")]
|
||||
public string Address { get; set; } = string.Empty;
|
||||
public Dictionary<int, IOrdersModel> OrdersId { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
@ -0,0 +1,23 @@
|
||||
using FurnitureFactoryDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FurnitureContracts.ViewModel
|
||||
{
|
||||
internal class UserViewModel : IUserModel
|
||||
{
|
||||
[DisplayName("Логин")]
|
||||
public int Login { get; set; }
|
||||
[DisplayName("Пароль")]
|
||||
public int Password { get; set; }
|
||||
[DisplayName("Имя пользователя")]
|
||||
|
||||
public string UserName { get; set; } = string.Empty;
|
||||
|
||||
public int RoleID { get; set; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user