示例#1
0
        /// <summary>
        /// get product details to edit record.
        /// </summary>
        /// <param name="Productid"></param>
        /// <returns></returns>
        public Response <SubProduct_Result> GetSubProduct(int?product_id, int sub_productid)
        {
            SubProduct_Result productlist = new SubProduct_Result();

            try
            {
                productlist = _cardManService.GetSubProduct(product_id, sub_productid);
                return(new Response <SubProduct_Result>(productlist, ResponseType.SUCCESSFUL,
                                                        "",
                                                        ""));
            }
            catch (Exception ex)
            {
                log.Error(ex);
                return(new Response <SubProduct_Result>(null,
                                                        ResponseType.ERROR,
                                                        "Error when processing request.",
                                                        log.IsDebugEnabled || log.IsTraceEnabled ? ex.Message : ""));
            }
        }