This commit is contained in:
2018-08-28 00:03:06 +00:00
parent 82bd65cf49
commit b60dc75c8e
9 changed files with 85 additions and 17 deletions

View File

@@ -43,12 +43,32 @@ namespace AyaNova.Biz
ct.SaveChanges();
}
internal static Task<string> GetLogForObject(long ayId, AyContext ct)
/// <summary>
/// Get the event log for a specified object
/// </summary>
/// <param name="ayId"></param>
/// <param name="userLocaleId"></param>
/// <param name="ct"></param>
/// <returns></returns>
internal static async Task<string> GetLogForObject(long ayId, long userLocaleId, AyContext ct)
{
throw new NotImplementedException();
var items = await ct.Event
.Where(m => m.AyId == ayId)
.OrderBy(m => m.Created)
.ToListAsync();
AyaNova.Api.Controllers.LocaleController.LocaleSubsetParam param = new Api.Controllers.LocaleController.LocaleSubsetParam();
param.LocaleId = userLocaleId;
param.Keys.AddRange(new string[] { "CommonCreated", "Delete","Modified","Retrieved" });
var LT = LocaleBiz.GetSubsetStatic(param);
//Have list of locales
return null;
}
internal static Task<string> GetLogForUser(long ayId, AyContext ct)
internal static Task<string> GetLogForUser(long ayId, long userLocaleId, AyContext ct)
{
throw new NotImplementedException();
}