The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

PasteCreateViewModel.cs 675B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Linq;
  5. using System.Web;
  6. using System.Web.Mvc;
  7. using Teknik.ViewModels;
  8. namespace Teknik.Areas.Paste.ViewModels
  9. {
  10. public class PasteCreateViewModel : ViewModelBase
  11. {
  12. [Required]
  13. [AllowHtml]
  14. public string Content { get; set; }
  15. public string Title { get; set; }
  16. public string Syntax { get; set; }
  17. [Range(1, int.MaxValue)]
  18. public int? ExpireLength { get; set; }
  19. public string ExpireUnit { get; set; }
  20. public string Password { get; set; }
  21. public bool Hide { get; set; }
  22. }
  23. }