private bool ExecuteFundsLoadNoCardReason(long id, long auditUserId, string auditWorkstation, int languageId) { var fundsLoad = _fundsOperations.Retrieve(id, false, auditUserId, auditWorkstation); var productDetails = _cardManService.GetProduct(fundsLoad.ProductId, auditUserId, auditWorkstation); int cardIssueReasonId = productDetails.CardIssueReasons[0]; bool successful = ExecuteFundsLoad(id, auditUserId, auditWorkstation, languageId, cardIssueReasonId); if (successful) { _fundsOperations.Load(id, auditUserId, auditWorkstation); } return(successful); }
/// <summary> /// get product details to edit record. /// </summary> /// <param name="Productid"></param> /// <returns></returns> public Response <ProductResult> GetProduct(int productId, long auditUserId, string auditWorkstation) { ProductResult productlist = new ProductResult(); try { productlist = _cardManService.GetProduct(productId, auditUserId, auditWorkstation); return(new Response <ProductResult>(productlist, ResponseType.SUCCESSFUL, "", "")); } catch (Exception ex) { log.Error(ex); return(new Response <ProductResult>(null, ResponseType.ERROR, "Error when processing request.", log.IsDebugEnabled || log.IsTraceEnabled ? ex.Message : "")); } }