/// List all Customers in the Database and fill the Dropdown /// </summary> public void ListCustomerByName() { try { _customerModel = new CustomerModel(); _view.CustomerList = _customerModel.ListCustomerByName(_view.PrefixText).OrderBy(e => e.FullCustomerInformation).ToList(); } catch (Exception ex) { Logger.Write(string.Format("An Error has ocurred while trying to load the Customer Information!\n{0}\n{1}", ex.Message, ex.StackTrace)); } }
/// List all Customers in the Database and fill the Dropdown /// </summary> public void ListCustomerByNameJSON() { try { using (_customerModel = new CustomerModel()) { _view.CustomerList = _customerModel.ListCustomerByName(_view.FilterText); } } catch (Exception ex) { Logger.Write(string.Format("An Error has ocurred while trying to load the Customer Information!\n{0}\n{1}", ex.Message, ex.StackTrace)); } }