This commit is contained in:
@@ -17,11 +17,23 @@ namespace AyaNova.Biz
|
||||
|
||||
/// <summary>
|
||||
/// Add an entry to the log
|
||||
/// DOES NOT SAVE
|
||||
/// </summary>
|
||||
/// <param name="newEvent"></param>
|
||||
/// <param name="ct"></param>
|
||||
/// <returns></returns>
|
||||
internal static void AddEntry(Event newEvent, AyContext ct)
|
||||
internal static void AddEntryNoSave(Event newEvent, AyContext ct)
|
||||
{
|
||||
ct.Event.Add(newEvent);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Add and SAVE entry to the log
|
||||
/// </summary>
|
||||
/// <param name="newEvent"></param>
|
||||
/// <param name="ct"></param>
|
||||
/// <returns></returns>
|
||||
internal static void AddEntryAndSave(Event newEvent, AyContext ct)
|
||||
{
|
||||
ct.Event.Add(newEvent);
|
||||
ct.SaveChanges();
|
||||
|
||||
Reference in New Issue
Block a user