예제 #1
0
        /// <summary>
        /// get all active products list
        /// </summary>
        /// <param name="issuerID"></param>
        /// <param name="pageIndex"></param>
        /// <param name="RowsPerpage"></param>
        /// <returns></returns>
        public Response <List <SubProduct_Result> > GetSubProductList(int issuer_id, int?product_id, int?cardIssueMethidId, Boolean?deletedYN, int pageIndex, int RowsPerpage)
        {
            List <SubProduct_Result> fontlist = new List <SubProduct_Result>();

            try
            {
                fontlist = _cardManService.GetSubProductList(issuer_id, product_id, cardIssueMethidId, deletedYN, pageIndex, RowsPerpage);

                return(new Response <List <SubProduct_Result> >(fontlist, ResponseType.SUCCESSFUL,
                                                                "",
                                                                ""));
            }
            catch (Exception ex)
            {
                log.Error(ex);
                return(new Response <List <SubProduct_Result> >(null,
                                                                ResponseType.ERROR,
                                                                "Error when processing request.",
                                                                log.IsDebugEnabled || log.IsTraceEnabled ? ex.Message : ""));
            }
        }