public async Task <YuleLog> GetLogByID(Guid logID) { YuleLog logicLog = Mapper.MapLog(await santaContext.YuleLogs.FirstOrDefaultAsync(yl => yl.LogId == logID)); return(logicLog); }
public async Task CreateNewLogEntry(YuleLog newLog) { Data.Entities.YuleLog contextLog = Mapper.MapLog(newLog); await santaContext.YuleLogs.AddAsync(contextLog); }