public MapJsonModel ToJsonModel() { return(new MapJsonModel { Snakes = snakes.Select(x => x.ToJsonModel()).ToList(), Foods = Foods.ToList(), Height = Height, Width = Width, Winner = Winner }); }
private void UpdatePreheatTemperature() { if (foods.Any()) { var cookingMethod = CookingMethodFactory.GenerateCookingMethod(Foods.ToList()); PreheatTemperature = cookingMethod.First().Temperature; } else { PreheatTemperature = null; } }
private void AddCustomToOrder(object obj) { Order.Foods = Foods.ToList(); CustomMessage(); }