This commit is contained in:
@@ -13,18 +13,18 @@ namespace AyaNova.Biz
|
||||
{
|
||||
internal static class EventLogProcessor
|
||||
{
|
||||
private static ILogger log = AyaNova.Util.ApplicationLogging.CreateLogger("EventLogProcessor");
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Add an entry to the log
|
||||
/// DOES NOT SAVE
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="newEvent"></param>
|
||||
/// <param name="ct"></param>
|
||||
/// <returns></returns>
|
||||
internal static void AddEntryToContextNoSave(Event newEvent, AyContext ct)
|
||||
internal static void LogEventToDatabase(Event newEvent, AyContext ct)
|
||||
{
|
||||
ct.Event.Add(newEvent);
|
||||
ct.Event.Add(newEvent);
|
||||
ct.SaveChanges();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user