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