private static void SaveInDb(Logs logs) { LogsContext dbContext = new LogsContext(); dbContext.Logs.Add(logs); dbContext.SaveChanges(); }