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