public void Update() { Dishes.Clear(); using (IDishController controller = factory.CreateDishController()) { DataControllerMessage <IEnumerable <DishDisplayDTO> > controllerMessage = controller.GetAll(); if (controllerMessage.IsSuccess) { foreach (DishDisplayDTO dish in controllerMessage.Data) { Dishes.Add(dish); } } } }