This commit is contained in:
@@ -57,19 +57,28 @@ namespace AyaNova.Biz
|
|||||||
.OrderBy(m => m.Created)
|
.OrderBy(m => m.Created)
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
|
|
||||||
|
if (items.Count == 0)
|
||||||
|
{
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
AyaNova.Api.Controllers.LocaleController.LocaleSubsetParam param = new Api.Controllers.LocaleController.LocaleSubsetParam();
|
AyaNova.Api.Controllers.LocaleController.LocaleSubsetParam param = new Api.Controllers.LocaleController.LocaleSubsetParam();
|
||||||
param.LocaleId = userLocaleId;
|
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
|
//TODO: add all the keys from all the events in AyaEvent
|
||||||
//Attachment, Created instead of AttachmentCreate, or is it attached?
|
//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
|
//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 SbReturn.ToString();
|
||||||
return null;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -79,6 +88,13 @@ namespace AyaNova.Biz
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
internal static string BuildLogEntry(Event ev, List<KeyValuePair<string, string>> lt)
|
||||||
|
{
|
||||||
|
|
||||||
|
return ":";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user