25 lines
685 B
C#
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();
|
|
}
|
|
}
|