2023-04-16 21:46:06 +04:00
|
|
|
|
using ForumDataModels.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ForumContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class AnswerViewModel : IAnswerModel
|
|
|
|
|
{
|
|
|
|
|
[DisplayName("Ответ на вопрос")]
|
2023-04-16 22:36:22 +04:00
|
|
|
|
public string AnswerDes { get; set; } = string.Empty;
|
2023-04-16 21:46:06 +04:00
|
|
|
|
|
|
|
|
|
[DisplayName("Дата ответа")]
|
|
|
|
|
public DateTime ResponseDate { get; set; } = DateTime.Now;
|
|
|
|
|
|
2023-04-30 18:54:20 +04:00
|
|
|
|
[DisplayName("Автор ответа")]
|
|
|
|
|
public string AuthorAnswer { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
[DisplayName("Содержание вопроса")]
|
|
|
|
|
public string QuestionText { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
[DisplayName("Дата создания вопроса")]
|
|
|
|
|
public DateTime QuestionCreateDate { get; set; } = DateTime.Now;
|
|
|
|
|
|
2023-04-16 21:46:06 +04:00
|
|
|
|
public int QuestionId { get; set; }
|
|
|
|
|
|
|
|
|
|
public int UserId { get; set; }
|
|
|
|
|
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|