Exemplo n.º 1
0
        public SelectAdjustedRateRang_Result FinAdjustedRateRang(int categoryID, int exposureTypeID, int limitID)
        {
            IMainModuleUnitOfWork activeContext = this.UnitOfWork as IMainModuleUnitOfWork;

            if (activeContext != null)
            {
                //perform operation in this repository
                return(activeContext.SelectAdjustedRateRang(categoryID, exposureTypeID, limitID).FirstOrDefault());
            }
            else
            {
                throw new InvalidOperationException(string.Format(
                                                        CultureInfo.InvariantCulture,
                                                        Messages.exception_InvalidStoreContext,
                                                        this.GetType().Name));
            }
        }