Beispiel #1
0
        public async Task <YuleLog> GetLogByID(Guid logID)
        {
            YuleLog logicLog = Mapper.MapLog(await santaContext.YuleLogs.FirstOrDefaultAsync(yl => yl.LogId == logID));

            return(logicLog);
        }
Beispiel #2
0
 public async Task CreateNewLogEntry(YuleLog newLog)
 {
     Data.Entities.YuleLog contextLog = Mapper.MapLog(newLog);
     await santaContext.YuleLogs.AddAsync(contextLog);
 }