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))); }