private void SaveProducer() { controller.InsertOrUpdate(EditProducer.GetProducer()); InitViewModels(); EditProducer = null; }
private void DeleteProducer() { controller.RemoveProducerById(EditProducer.GetProducer().Id); InitViewModels(); EditProducer = null; }
private void CreateNewProducer() { EditProducer = new ProducerViewModel(new Producer()); EditProducer.Name = ""; EditProducer.CountryOrigin = ""; }