This commit is contained in:
2019-05-20 22:05:06 +00:00
parent d9f7a69da6
commit 9b91b85a64
8 changed files with 18 additions and 15 deletions

View File

@@ -14,7 +14,7 @@ namespace AyaNova.Models
public uint ConcurrencyToken { get; set; }
public DateTime Created { get; set; }
[Required]
public long OwnerId { get; set; }
public long UserId { get; set; }
//-----------------------------------------
[Required]
public long AyId { get; set; }
@@ -32,10 +32,10 @@ namespace AyaNova.Models
Created = System.DateTime.UtcNow;
}
public Event(long ownerId, long ayId, AyaType ayType, AyaEvent ayEvent, string textra = null)
public Event(long userId, long ayId, AyaType ayType, AyaEvent ayEvent, string textra = null)
{
Created = System.DateTime.UtcNow;
OwnerId = ownerId;
UserId = userId;
AyId = ayId;
AyType = ayType;
AyEvent = ayEvent;
@@ -47,10 +47,10 @@ namespace AyaNova.Models
}
}
public Event(long ownerId, long ayId, AyaType ayType, AyaEvent ayEvent, DateTime created, string textra = null)
public Event(long userId, long ayId, AyaType ayType, AyaEvent ayEvent, DateTime created, string textra = null)
{
Created = created;
OwnerId = ownerId;
UserId = userId;
AyId = ayId;
AyType = ayType;
AyEvent = ayEvent;