Пример #1
0
        /// <summary>
        /// Metodo Para Obtener una categoria basado en el id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public static Estado Get(int id)
        {
            Estado estado = null;

            try
            {
                estado = EstadoDal.Get(id);
            }
            catch (SqlException ex)
            {
                Methods.GenerateLogsRelease("EsatdoBrl", "Obtener", string.Format("{0} {1} Error: {2}", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), ex.Message));
                throw ex;
            }
            catch (Exception ex)
            {
                Methods.GenerateLogsRelease("EstadoBrl", "Obtener", string.Format("{0} {1} Error: {2}", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), ex.Message));
                throw ex;
            }

            return(estado);
        }