public JsonResult PegarComentariosDoMural()
 {
     var comentarioRepository = new ComentarioRepository();
     var comentarios = comentarioRepository.GetAllFilteredByAndOrderedBy(
         x => x.ComentarioPai == null
         , x => - x.CriadoEm.Ticks);
     return new JsonResult() { Data = new { Comentarios = comentarios }, JsonRequestBehavior = JsonRequestBehavior.AllowGet };
 }
 public ComentarioController()
 {
     comentarioRepository = new ComentarioRepository(ConfigurationManager.ConnectionStrings["DatabaseEntities"].ConnectionString);
     postRepository = new PostRepository(ConfigurationManager.ConnectionStrings["DatabaseEntities"].ConnectionString);
 }