コード例 #1
0
        public Response <List <ProductValidated> > GetProductsListValidated(int issuerID, int?cardIssueMethodId, int pageIndex, int RowsPerpage, int languageId, long auditUserId, string auditWorkstation)
        {
            List <ProductValidated> productlist = new List <ProductValidated>();

            try
            {
                productlist = _cardManService.GetProductsListValidated(issuerID, cardIssueMethodId, pageIndex, RowsPerpage, languageId, auditUserId, auditWorkstation);

                return(new Response <List <ProductValidated> >(productlist, ResponseType.SUCCESSFUL,
                                                               "",
                                                               ""));
            }
            catch (BaseIndigoException biex)
            {
                var responseMessage = _translator.TranslateResponseCode(biex.SystemCode, 0, languageId, auditUserId, auditWorkstation);
                return(new Response <List <ProductValidated> >(null,
                                                               ResponseType.UNSUCCESSFUL,
                                                               responseMessage,
                                                               log.IsDebugEnabled || log.IsTraceEnabled ? biex.ToString() : ""));
            }
            catch (Exception ex)
            {
                log.Error(ex);
                return(new Response <List <ProductValidated> >(null,
                                                               ResponseType.ERROR,
                                                               "Error when processing request.",
                                                               log.IsDebugEnabled || log.IsTraceEnabled ? ex.Message : ""));
            }
        }