mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Add model contraints.
This commit is contained in:
@@ -37,6 +37,7 @@ namespace Cicm.Database.Models
|
||||
{
|
||||
public int CompanyId { get; set; }
|
||||
[MaxLength(262144, ErrorMessage = "Description is too long")]
|
||||
[Required]
|
||||
public string Text { get; set; }
|
||||
[MaxLength(262144, ErrorMessage = "Description is too long")]
|
||||
[DisplayName("HTML")]
|
||||
|
||||
Reference in New Issue
Block a user