diff --git a/server/AyaNova/biz/EventLogProcessor.cs b/server/AyaNova/biz/EventLogProcessor.cs index 55e65b0b..ac1c4f4e 100644 --- a/server/AyaNova/biz/EventLogProcessor.cs +++ b/server/AyaNova/biz/EventLogProcessor.cs @@ -57,19 +57,28 @@ namespace AyaNova.Biz .OrderBy(m => m.Created) .ToListAsync(); + if (items.Count == 0) + { + return ""; + } + AyaNova.Api.Controllers.LocaleController.LocaleSubsetParam param = new Api.Controllers.LocaleController.LocaleSubsetParam(); param.LocaleId = userLocaleId; - param.Keys.AddRange(new string[] { "CommonCreated", "Delete","Modified","Retrieved" }); + param.Keys.AddRange(new string[] { "CommonCreated", "Delete", "Modified", "Retrieved" }); //TODO: add all the keys from all the events in AyaEvent //Attachment, Created instead of AttachmentCreate, or is it attached? - var LT = LocaleBiz.GetSubsetStatic(param); + var LT = await LocaleBiz.GetSubsetStatic(param); //Have list of locales and list of ops, now make it into a readable text display and return it + System.Text.StringBuilder SbReturn = new System.Text.StringBuilder(); + foreach (Event ev in items) + { + SbReturn.AppendLine(BuildLogEntry(ev, LT)); + } - - return null; + return SbReturn.ToString(); } @@ -79,6 +88,13 @@ namespace AyaNova.Biz } + internal static string BuildLogEntry(Event ev, List> lt) + { + + return ":"; + } + + /////////////////////////////////////////////////////////////////////