Files
OfflineDemoAppStart/OfflineDemo/Models/UploadModel.cs
2025-06-29 08:47:52 +02:00

18 lines
514 B
C#

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; } = "#";
}