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.

PodcastViewModel.cs 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using Teknik.Areas.Podcast.Models;
  6. using Teknik.ViewModels;
  7. namespace Teknik.Areas.Podcast.ViewModels
  8. {
  9. public class PodcastViewModel : ViewModelBase
  10. {
  11. public int PodcastId { get; set; }
  12. public int Episode { get; set; }
  13. public string Title { get; set; }
  14. public string Description { get; set; }
  15. public List<PodcastFile> Files { get; set; }
  16. public List<PodcastTag> Tags { get; set; }
  17. public DateTime DatePosted { get; set; }
  18. public bool Published { get; set; }
  19. public DateTime DatePublished { get; set; }
  20. public DateTime DateEdited { get; set; }
  21. public PodcastViewModel() { }
  22. public PodcastViewModel(Models.Podcast podcast)
  23. {
  24. PodcastId = podcast.PodcastId;
  25. Episode = podcast.Episode;
  26. Title = podcast.Title;
  27. Description = podcast.Description;
  28. Files = podcast.Files.ToList();
  29. Tags = podcast.Tags.ToList();
  30. DatePosted = podcast.DatePosted;
  31. Published = podcast.Published;
  32. DatePublished = podcast.DatePublished;
  33. DateEdited = podcast.DateEdited;
  34. }
  35. }
  36. }