private IEnumerable <CategoriaBlogViewModel.Blog> GetListViewBlog(IEnumerable <Blog> lstBlogs)
        {
            var lstViewBlogs = new List <CategoriaBlogViewModel.Blog>();

            foreach (var objBlog in lstBlogs)
            {
                var objBlogView = new CategoriaBlogViewModel.Blog
                {
                    Id           = objBlog.Id,
                    Titulo       = objBlog.Titulo,
                    Url          = objBlog.Url,
                    Img          = objBlog.Img,
                    CategoriaUrl = objBlog.Categoria.Url
                };

                objBlogView.LastPost = Noticia.GetLastestPostsByBlog(1, objBlog.Id).FirstOrDefault();

                if (string.IsNullOrEmpty(objBlogView.Img))
                {
                    var objautor = objBlog.Autores.FirstOrDefault();

                    if (objautor != null)
                    {
                        objBlogView.Img = $"{Constants.UrlDominioEstaticoUploads}/{"autores"}/{objautor.Avatar}";
                    }
                    else
                    {
                        objBlogView.Img = Url.Content("~/content/images/placeholders/no-avatar.png");
                    }
                }
                else
                {
                    objBlogView.Img = $"{Constants.UrlDominioEstaticoUploads}/{"blog"}/{objBlog.Img}";
                }

                lstViewBlogs.Add(objBlogView);
            }

            return(lstViewBlogs);
        }