public String updateBlogDetails() {
        FacesMessage doneMessage = null;
        String outcome = null;

        Blog blog = new Blog();

        blog.setBlogId(this.blogId);

        blog.setBlogContent(this.blogContent);

        blog.setBlogContentLable(this.blogLabel);

        blog.setCreatedDate(this.blogCreatedDate);

        blog.setModifiedDate(new Date());


        if (blogDelegate.updateBlog(blog) != null) {
            doneMessage = new FacesMessage("Updated Successfully ");
            outcome = "success";
        } else {
            doneMessage = new FacesMessage("Failed to update");
            outcome = "failure";
        }

        FacesContext.getCurrentInstance().addMessage(null, doneMessage);

        return outcome;
    }