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.BindingModels
|
|
|
|
|
{
|
|
|
|
|
public class BookBindingModel : IBookModel
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
[DisplayName("Название")]
|
|
|
|
|
public string BookName { get; set; } = string.Empty;
|
|
|
|
|
[DisplayName("Стоимость")]
|
|
|
|
|
public double Cost { get; set; }
|
|
|
|
|
[DisplayName("Количество")]
|
|
|
|
|
public int Count { get; set; }
|
|
|
|
|
[DisplayName("Жанр")]
|
|
|
|
|
public int GenreId { get; set; }
|
|
|
|
|
public Dictionary<int, IAuthorModel> BookAuthors
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
} = new();
|
|
|
|
|
}
|
|
|
|
|
}
|