/// <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)); }
/// <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); }
/// <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)); }