PIbd-22-Ismailov_SUBD/BlogDataModels/BlogContracts/ViewModels/NewsViewModel.cs
2023-05-18 21:34:36 +04:00

25 lines
685 B
C#

using BlogDataModels.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BlogContracts.ViewModels
{
public class NewsViewModel : INews
{
[DisplayName("Название")]
public string Title { get; set; } = string.Empty;
[DisplayName("Автор")]
public int UserId { get; set; }
[DisplayName("Номер")]
public int Id { get; set; }
[DisplayName("Текст")]
public string Text { get; set; } = string.Empty;
public Dictionary<int, (ITag, int)> NewsTag { get; set; } = new();
}
}