Add project files.

This commit is contained in:
2025-06-29 08:47:52 +02:00
commit 88161dc2ab
46 changed files with 1894 additions and 0 deletions

View File

@ -0,0 +1,17 @@
using System.ComponentModel.DataAnnotations;
namespace OfflineDemo.Models;
public class UploadModel
{
[Required]
[StringLength(100, ErrorMessage = "Title must be less than 100 characters.")]
public string Title { get; set; } = "";
[Required]
[StringLength(500, ErrorMessage = "Description must be less than 500 characters.")]
public string Description { get; set; } = "";
[StringLength(200, ErrorMessage = "Hashtags must be less than 200 characters.")]
public string Hashtags { get; set; } = "#";
}