36 lines
896 B
C#
36 lines
896 B
C#
using System;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using System.Collections.Generic;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.Extensions.Logging;
|
|
using AyaNova.Models;
|
|
using AyaNova.Util;
|
|
|
|
|
|
namespace AyaNova.Biz
|
|
{
|
|
internal static class EventLogProcessor
|
|
{
|
|
private static ILogger log = AyaNova.Util.ApplicationLogging.CreateLogger("EventLogProcessor");
|
|
|
|
/// <summary>
|
|
/// Add an entry to the log
|
|
/// </summary>
|
|
/// <param name="newEvent"></param>
|
|
/// <param name="ct"></param>
|
|
/// <returns></returns>
|
|
internal static void AddEntry(Event newEvent, AyContext ct)
|
|
{
|
|
ct.Event.Add(newEvent);
|
|
ct.SaveChanges();
|
|
}
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
}//eoc
|
|
|
|
}//eons
|
|
|