Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="policy"></param>
        /// <param name="transaction_secuence"></param>
        /// <returns></returns>
        public List <TRANSACTION_BY_COVERAGE> GetCoverageDistribution(string policy, int transaction_secuence)
        {
            var contexto = new ATLANEntities();
            List <TRANSACTION_BY_COVERAGE> coveragelist;

            try
            {
                contexto.Database.CommandTimeout = 600;
                coveragelist = contexto.usp_ST_SYSFLEX_GET_TRANSACTION_BY_COVERAGE(policy, transaction_secuence).ToList();

                return(coveragelist);
            }
            catch (EntityException ex)
            {
                log.LogExeption("Ocurrió un error: ", 2, ex);
                throw;
            }
            catch (Exception ex)
            {
                log.LogExeption("Ocurrió un error: ", 2, ex);
                throw;
            }
            finally
            {
                contexto.Dispose();
            }
        }