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