The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CommentViewModel.cs 951B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using Teknik.Areas.Users.Models;
  6. using Teknik.ViewModels;
  7. namespace Teknik.Areas.Podcast.ViewModels
  8. {
  9. public class CommentViewModel : ViewModelBase
  10. {
  11. public int CommentId { get; set; }
  12. public int PodcastId { get; set; }
  13. public Models.Podcast Podcast { get; set; }
  14. public User User { get; set; }
  15. public DateTime DatePosted { get; set; }
  16. public DateTime DateEdited { get; set; }
  17. public string Article { get; set; }
  18. public CommentViewModel(Models.PodcastComment comment)
  19. {
  20. CommentId = comment.PodcastCommentId;
  21. PodcastId = comment.PodcastId;
  22. Podcast = comment.Podcast;
  23. User = comment.User;
  24. DatePosted = comment.DatePosted;
  25. DateEdited = comment.DateEdited;
  26. Article = comment.Article;
  27. }
  28. }
  29. }