Ejemplo n.º 1
0
        /// <summary>
        /// Get the specified product
        /// </summary>
        /// <param name="paramValues">Product identifier</param>
        /// <returns>The product</returns>
        public static List <Dictionary <string, object> > GetProductById(Dictionary <string, object> paramValues)
        {
            var procName = "sp_GetProductById";

            return(StorageManager.CallProcedure(procName, paramValues));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Delete product by specified id
        /// </summary>
        /// <param name="paramValues">Product identifier</param>
        public static void DeleteProduct(Dictionary <string, object> paramValues)
        {
            var procName = "sp_DeleteProduct";

            StorageManager.CallProcedure(procName, paramValues);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Get all products from Products table
        /// </summary>
        /// <returns>List of products. Product is represented by key value pairs</returns>
        public static List <Dictionary <string, object> > GetAllProducts()
        {
            var procName = "sp_GetAllProducts";

            return(StorageManager.CallProcedure(procName));
        }