This commit is contained in:
2018-08-23 20:57:13 +00:00
parent 0ed23e0590
commit 0d4ac9f4ff

View File

@@ -22,6 +22,8 @@ namespace AyaNova.Models
public AyaType AyType { get; set; } public AyaType AyType { get; set; }
[Required] [Required]
public AyaEvent AyEvent { get; set; } public AyaEvent AyEvent { get; set; }
[MaxLength(255)]
public string Textra { get; set; } public string Textra { get; set; }
@@ -35,10 +37,12 @@ namespace AyaNova.Models
Created = System.DateTime.UtcNow; Created = System.DateTime.UtcNow;
OwnerId = ownerId; OwnerId = ownerId;
AyId = ayId; AyId = ayId;
AyType=ayType; AyType = ayType;
AyEvent = ayEvent; AyEvent = ayEvent;
if (textra != null) if (textra != null)
{ {
if (textra.Length > 255)
textra = textra.Substring(0, 255);
Textra = textra; Textra = textra;
} }
} }