public static object GenerateTrnObject(string strTradeDate , string strBuySell , string strInstrument , string strCtpy , string strPortfolio , string strEffectiveDate , string strMaturityDate , string strNotional , string strProductId , string strRemark , bool blnIsSubmit) { try { DA_TRN TrnInfo = DealUIP.GenerateRepoTransactionObject(SessionInfo , strTradeDate , strBuySell , strInstrument , strCtpy , strPortfolio , strEffectiveDate , strMaturityDate , strNotional , strProductId , strRemark); object PCESCEObject; CheckRepoLimit(blnIsSubmit, TrnInfo, out PCESCEObject); return(new { Result = "OK", record = JsonConvert.SerializeObject(TrnInfo, new IsoDateTimeConverter()), pcesce = PCESCEObject, Message = "" }); } catch (Exception ex) { return(new { Result = "ERROR", Message = ex.Message }); } }