2023-05-12 12:08:11 +04:00
|
|
|
|
using BookShopDataModels.Models;
|
2023-05-13 14:30:05 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2023-05-12 12:08:11 +04:00
|
|
|
|
using System.ComponentModel;
|
2023-05-13 14:30:05 +04:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
2023-05-12 12:08:11 +04:00
|
|
|
|
|
|
|
|
|
namespace BookShopContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class OrderViewModel: IOrderModel
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
public int BookId { get; set; }
|
|
|
|
|
[DisplayName("Название книги")]
|
|
|
|
|
public string BookName { get; set; } = string.Empty;
|
|
|
|
|
public int ClientId { get; set; }
|
|
|
|
|
[DisplayName("Фамилия клиента")]
|
|
|
|
|
public string ClientSurname {get; set; } = string.Empty;
|
|
|
|
|
[DisplayName("Количество")]
|
|
|
|
|
public int Count { get; set; }
|
|
|
|
|
[DisplayName("Сумма")]
|
|
|
|
|
public double Sum { get; set; }
|
|
|
|
|
[DisplayName("Дата заказа")]
|
|
|
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
|
|
|
|
}
|
|
|
|
|
}
|