24 lines
726 B
C#
24 lines
726 B
C#
using BookShopDataModels.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BookShopContracts.ViewModels
|
|
{
|
|
public class BookViewModel: IBookModel
|
|
{
|
|
public int Id { get; set; }
|
|
[DisplayName("Название")]
|
|
public string BookName { get; set; } = string.Empty;
|
|
[DisplayName("Стоимость")]
|
|
public double Cost { get; set; }
|
|
public int Count { get; set; }
|
|
public int GenreId { get; set; }
|
|
public string GenreName { get; set; } = string.Empty;
|
|
public Dictionary<int, IAuthorModel> BookAuthors { get; set; } = new();
|
|
}
|
|
}
|