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