public IEnumerable <string> GetBondComputationResultZeroDistinctRefNo()
        {
            return(ExecuteFaultHandledOperation(() =>
            {
                var groupNames = new List <string>()
                {
                    GROUP_ADMINISTRATOR, GROUP_USER
                };
                AllowAccessToOperation(SOLUTION_NAME, groupNames);

                IBondComputationResultZeroRepository bondComputationResultZeroRepository = _DataRepositoryFactory.GetDataRepository <IBondComputationResultZeroRepository>();

                IEnumerable <string> bondComputationResultZeros = bondComputationResultZeroRepository.GetDistinctBondComputationResultZeroRefNos().ToArray();

                return bondComputationResultZeros.ToList();
            }));
        }
        public BondComputationResultZero[] GetBondComputationResultZerobyRefNos(string refNo)
        {
            return(ExecuteFaultHandledOperation(() =>
            {
                var groupNames = new List <string>()
                {
                    GROUP_ADMINISTRATOR, GROUP_USER
                };
                AllowAccessToOperation(SOLUTION_NAME, groupNames);

                IBondComputationResultZeroRepository bondComputationResultZeroMapRepository = _DataRepositoryFactory.GetDataRepository <IBondComputationResultZeroRepository>();

                BondComputationResultZero[] bondComputationResultZeroEntity = bondComputationResultZeroMapRepository.Get().Where(c => c.RefNo == refNo).OrderBy(c => c.Day).ToArray();
                if (bondComputationResultZeroEntity == null)
                {
                    NotFoundException ex = new NotFoundException(string.Format("BondComputationResultZero with ID of {0} is not in database", refNo));
                    throw new FaultException <NotFoundException>(ex, ex.Message);
                }

                return bondComputationResultZeroEntity;
            }));
        }