diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/BuildModelContracts.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/BuildModelContracts.cs new file mode 100644 index 0000000..10ccf1b --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/BuildModelContracts.cs @@ -0,0 +1,16 @@ +using ComputerHardwareStoreDataModels.Models; +using System.ComponentModel; + +namespace ComputerHardwareStoreContracts.ViewModels +{ + public class BuildModelContracts : IBuildModel + { + public int Id { get; set; } + [DisplayName("Название сборки")] + public string BuildName { get; } + [DisplayName("Стоимость")] + public double Price { get; } + public int VendorId { get; } + public Dictionary BuildComponent { get; } + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/CommentModelContracts.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/CommentModelContracts.cs new file mode 100644 index 0000000..ff666ee --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/CommentModelContracts.cs @@ -0,0 +1,12 @@ +using ComputerHardwareStoreDataModels.Models; + +namespace ComputerHardwareStoreContracts.ViewModels +{ + public class CommentModelContracts : ICommentModel + { + public int Id { get; set; } + public DateTime Date { get; set; } + public string Text { get; set; } + public int BuildId { get; set; } + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/ComponentModelContracts.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/ComponentModelContracts.cs new file mode 100644 index 0000000..6bc7d6a --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/ComponentModelContracts.cs @@ -0,0 +1,14 @@ +using ComputerHardwareStoreDataModels.Models; +using System.ComponentModel; + +namespace ComputerHardwareStoreContracts.ViewModels +{ + public class ComponentModelContracts : IComponentModel + { + public int Id { get; set; } + [DisplayName("Название компонента")] + public string ComponentName { get; set; } = string.Empty; + [DisplayName("Цена")] + public double Cost { get; set; } + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/OrderModelContracts.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/OrderModelContracts.cs new file mode 100644 index 0000000..0a56ec2 --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/OrderModelContracts.cs @@ -0,0 +1,15 @@ +using ComputerHardwareStoreDataModels.Models; +using System.ComponentModel; + +namespace ComputerHardwareStoreContracts.ViewModels +{ + public class OrderModelContracts : IOrderModel + { + public int Id { get; set; } + [DisplayName("Стоимость")] + public double Cost { get; set; } + [DisplayName("Дата создания")] + DateTime DateCreate { get; set; } + public Dictionary OrderProduct { get; set; } + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/ProductModelContracts.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/ProductModelContracts.cs new file mode 100644 index 0000000..6a38c07 --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/ProductModelContracts.cs @@ -0,0 +1,16 @@ +using ComputerHardwareStoreDataModels.Models; +using System.ComponentModel; + +namespace ComputerHardwareStoreContracts.ViewModels +{ + public class ProductModelContracts : IProductModel + { + public int Id { get; set; } + [DisplayName("Название изделия")] + public string CannedName { get; set; } + [DisplayName("Цена")] + public double Price { get; set; } + public Dictionary CannedComponents { get; set; } = new(); + + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/PurchaseModelContracts.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/PurchaseModelContracts.cs new file mode 100644 index 0000000..345e839 --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/PurchaseModelContracts.cs @@ -0,0 +1,20 @@ +using ComputerHardwareStoreDataModels.Models; +using System.ComponentModel; + +namespace ComputerHardwareStoreContracts.ViewModels +{ + public class PurchaseModelContracts : IPurchaseModel + { + public int Id { get; set; } + [DisplayName("Стоимость")] + public double Cost { get; set; } + [DisplayName("Дата создания")] + public DateTime DateCreate { get; set; } + public int VendorId { get; set; } + [DisplayName("Сумма")] + public double Sum { get; set; } + public Dictionary PurchaseBuild { get; set; } + + public Dictionary PurchaseProduct { get; set; } + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/StoreKeeperModelContracts.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/StoreKeeperModelContracts.cs new file mode 100644 index 0000000..6659ebf --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/StoreKeeperModelContracts.cs @@ -0,0 +1,16 @@ +using ComputerHardwareStoreDataModels.Models; +using System.ComponentModel; + +namespace ComputerHardwareStoreContracts.ViewModels +{ + public class StoreKeeperModelContracts : IStoreKeeperModel + { + public int Id { get; set; } + [DisplayName("Имя кладовщика")] + public string Name { get; set; } + [DisplayName("Логин")] + public string Login { get; set; } + [DisplayName("Пароль")] + public string Password { get; set; } + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/VendorModelContracts.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/VendorModelContracts.cs new file mode 100644 index 0000000..1eb35eb --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/VendorModelContracts.cs @@ -0,0 +1,16 @@ +using ComputerHardwareStoreDataModels.Models; +using System.ComponentModel; + +namespace ComputerHardwareStoreContracts.ViewModels +{ + public class VendorModelContracts : IVendorModel + { + public int Id { get; set; } + [DisplayName("Имя продавца")] + public string Name { get; set; } + [DisplayName("Логин")] + public string Login { get; set; } + [DisplayName("Пароль")] + public string Password { get; set; } + } +} \ No newline at end of file