This commit is contained in:
@@ -38,7 +38,7 @@ namespace AyaNova.Biz
|
|||||||
/// <param name="ct"></param>
|
/// <param name="ct"></param>
|
||||||
internal static void DeleteObject(long userId, AyaType ayType, long ayId, string textra, AyContext ct)
|
internal static void DeleteObject(long userId, AyaType ayType, long ayId, string textra, AyContext ct)
|
||||||
{
|
{
|
||||||
ct.Database.ExecuteSqlCommand("delete from aevent where aytype = {0} and ayid={1}", new object[] { (int)ayType }, new object[] { ayId });
|
ct.Database.ExecuteSqlCommand($"delete from aevent where aytype = {ayType} and ayid={ayId}");
|
||||||
ct.Event.Add(new Event(userId, ayId, ayType, AyaEvent.Deleted, textra));
|
ct.Event.Add(new Event(userId, ayId, ayType, AyaEvent.Deleted, textra));
|
||||||
ct.SaveChanges();
|
ct.SaveChanges();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ namespace AyaNova.Models
|
|||||||
Created = System.DateTime.UtcNow;
|
Created = System.DateTime.UtcNow;
|
||||||
OwnerId = ownerId;
|
OwnerId = ownerId;
|
||||||
AyId = ayId;
|
AyId = ayId;
|
||||||
|
AyType=ayType;
|
||||||
AyEvent = ayEvent;
|
AyEvent = ayEvent;
|
||||||
if (textra != null)
|
if (textra != null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user