public ActionResult FillDocument(int id)
        {
            var template = _templatesRepositoryHandler.FindById(id);
            template = new HtmlDocumentHandler(GetUserName()).ConvertView(template);

            ViewBag.FullName = GetUserName();
            return View(DocumentTemplateController.ConvertToModel(template));
        }
        public ActionResult ConvertView(DocumentTemplate template)
        {
            var userName = new MainController().GetUserName();

            var newTemplate =
                new HtmlDocumentHandler(userName)
                    .ConvertView(DocumentTemplateController.ConvertToBlModel(template));

            return View(DocumentTemplateController.ConvertToModel(newTemplate));
        }
        public ActionResult ConvertView(DocumentTemplate template)
        {
            _documentRepositoryHandler =
                new HtmlDocumentHandler(GetUserName());
            DocumentTemplate newTemplate = null;
            if (template.Text != null)
            {
                newTemplate = ConvertToModel
                    (_documentRepositoryHandler.ConvertView(ConvertToBlModel(template)));
            }

            return View("Preview", newTemplate);
        }