This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user