Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="policy"></param>
        /// <returns></returns>
        public SYSFLEX_POLICY GetPolicyInfo(string policy)
        {
            var            contexto   = new ATLANEntities();
            SYSFLEX_POLICY policyInfo = new SYSFLEX_POLICY();

            try
            {
                policyInfo = contexto.usp_ST_SYSFLEX_CUSTOMER_GET_POLICY_INFO(policy.Trim()).FirstOrDefault();
                return(policyInfo);
            }
            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();
            }
        }