public List <SelectPrimasPresentacion_Result> GetCotizacionPresentacionPrimas(int cotizacionID) { IMainModuleUnitOfWork activeContext = this.UnitOfWork as IMainModuleUnitOfWork; if (activeContext != null) { //perform operation in this repository return(activeContext.SelectPrimasPresentacion(cotizacionID).ToList()); } else { throw new InvalidOperationException(string.Format( CultureInfo.InvariantCulture, Messages.exception_InvalidStoreContext, this.GetType().Name)); } }