private void OnButtonAddProviderClick() { ProductProvider provider = new ProductProvider(); provider.Email = _view.Email; provider.Name = _view.ProviderName; provider.ContactNumber = _view.PhoneNumber; provider.BankAccountNumber = _view.BankAccount; var listCatergories = _view.GetListProductCategories(); foreach (var category in listCatergories) { provider.AddProductCategory(category); } _model.AddProductProvider(provider); _kernel.Get <PurcpManagerPresenter>().Run(); _view.Close(); }