/// <summary> /// Get all data to fill combo box /// </summary> /// <param name="error"></param> /// <returns></returns> public List <ModelNotifiedForCustomers> GetAll_Customers(out string error) { CustomersGenericREST CustomersGenericREST = new CustomersGenericREST(wpfConfig); List <ModelNotifiedForCustomers> modelNotifiedForCustomers = CustomersGenericREST.GetAll <ModelNotifiedForCustomers>(100, 0, out error); return(modelNotifiedForCustomers); }
public List <ModelNotifiedForCustomers> GetAllCustomers(out string error) { CustomersGenericREST CustomersGenericREST = new CustomersGenericREST(wpfConfig); List <ModelNotifiedForCustomers> modelNotifiedForCustomers = CustomersGenericREST.GetAll <ModelNotifiedForCustomers>(100, 0, out error); if (!string.IsNullOrEmpty(error)) { return(null); } //Initializing row status foreach (var item in modelNotifiedForCustomers) { item.ItemChanged = false; item.NewItem = false; } return(modelNotifiedForCustomers); }