public Food GetFoodByName(string foodName) { using (var context = new HealthContext()) { context.AddLogging(); var foods = context.Foods.FirstOrDefault(f => f.Name == foodName); return foods; } }