PIbd-22-Ismailov_SUBD/BlogDataModels/BlogContracts/ViewModels/NewsViewModel.cs

23 lines
627 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 string Author { get; set; } = string.Empty;
[DisplayName("Номер")]
public int Id { get; set; }
[DisplayName("Текст")]
public string Text { get; set; } = string.Empty;
}
}