/// <summary> /// Obtiene una lista de comentarios /// </summary> /// <returns>Comentario Lista</returns> public static ComentarioList Get() { ComentarioList lista = null; try { lista = ComentarioListDal.Get(); } catch (SqlException ex) { throw ex; } catch (Exception ex) { throw ex; } return(lista); }
/// <summary> /// Metodo para obtener una lista de comentarios de la base de datos /// </summary> /// <returns>List<Cliente></returns> public static List <Comentario> ListCategoria() { List <Comentario> comentarios = null; try { comentarios = ComentarioListDal.Get(); } catch (SqlException ex) { Methods.GenerateLogsRelease("ComentarioBrl", "ListComentario", string.Format("{0} {1} Error: {2}", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), ex.Message)); throw ex; } catch (Exception ex) { Methods.GenerateLogsRelease("ComentarioBrl", "ListComentario", string.Format("{0} {1} Error: {2}", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), ex.Message)); throw ex; } return(comentarios); }