This commit is contained in:
2021-04-03 16:04:40 +00:00
parent f608a514fc
commit 3470794272
3 changed files with 50 additions and 1 deletions

View File

@@ -141,6 +141,10 @@ namespace AyaNova.Biz
.ThenInclude(wi => wi.OutsideServices)
.SingleOrDefaultAsync(z => z.Id == id);
//todo: set isLocked from state
ret.IsLocked=false;
ret.IsDirty=false;
if (logTheGetEvent && ret != null)
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, id, BizType, AyaEvent.Retrieved), ct);
return ret;

View File

@@ -67,7 +67,8 @@ namespace AyaNova.Models
//UTILITY FIELDS
[NotMapped]
public bool IsDirty { get; set; } = false;//never dirty coming from the server
[NotMapped]
public bool IsLocked { get; set; } = false;//not by default but state may determine it's locked
[NotMapped, JsonIgnore]