Example #1
0
        public static object GetCtpyLimitGroupViewByCtpyID(SessionInfo sessioninfo, Guid ID)
        {
            try
            {
                CounterpartyBusiness _counterpartyBusiness = new CounterpartyBusiness();
                //Get data from database
                List <CptyLimitModel> limits = _counterpartyBusiness.GetCtpyLimitGroupViewByCtpyID(sessioninfo, ID);

                //Return result to jTable
                return(new { Result = "OK", Records = limits, TotalRecordCount = limits.Count });
            }
            catch (BusinessWorkflowsException bex)
            {
                return(new { Result = "ERROR", Message = bex.Message });
            }
            catch (Exception ex)
            {
                return(new { Result = "ERROR", Message = ex.Message });
            }
        }
Example #2
0
        public static object GetCtpyLimitGroupViewByCtpyID(SessionInfo sessioninfo, Guid ID)
        {
            try
            {
                CounterpartyBusiness _counterpartyBusiness = new CounterpartyBusiness();
                //Get data from database
                List<CptyLimitModel> limits = _counterpartyBusiness.GetCtpyLimitGroupViewByCtpyID(sessioninfo, ID);

                //Return result to jTable
                return new { Result = "OK", Records = limits, TotalRecordCount = limits.Count };
            }
            catch (BusinessWorkflowsException bex)
            {
                return new { Result = "ERROR", Message = bex.Message };
            }
            catch (Exception ex)
            {
                return new { Result = "ERROR", Message = ex.Message };
            }
        }