Ejemplo n.º 1
0
        /// <summary>
        /// Get all data to fill combo box
        /// </summary>
        /// <param name="error"></param>
        /// <returns></returns>
        public List <ModelNotifiedForCategories> GetAll_Categories(out string error)
        {
            CategoriesGenericREST             CategoriesGenericREST      = new CategoriesGenericREST(wpfConfig);
            List <ModelNotifiedForCategories> modelNotifiedForCategories = CategoriesGenericREST.GetAll <ModelNotifiedForCategories>(100, 0, out error);

            return(modelNotifiedForCategories);
        }
Ejemplo n.º 2
0
        public List <ModelNotifiedForCategories> GetAllCategories(out string error)
        {
            CategoriesGenericREST             CategoriesGenericREST      = new CategoriesGenericREST(wpfConfig);
            List <ModelNotifiedForCategories> modelNotifiedForCategories = CategoriesGenericREST.GetAll <ModelNotifiedForCategories>(100, 0, out error);

            if (!string.IsNullOrEmpty(error))
            {
                return(null);
            }

            //Initializing row status
            foreach (var item in modelNotifiedForCategories)
            {
                item.ItemChanged = false;
                item.NewItem     = false;
            }

            return(modelNotifiedForCategories);
        }