public ActionResult Save(string identifier, string content)
 {
     var document = this.dataManager.DocumentLocator.Find(identifier);
     var workflow = new CreateOrUpdateDocumentWorkflow(this.dataManager, document, content);
     var result = workflow.Execute();
     if (result.TotalSuccess)
     {
         return RedirectToAction("Edit", new { identifier = document.Identifier });
     }
     else
     {
         throw new Exception("hey there was a problem");
     }
 }
 public ActionResult Create(string name)
 {
     var document = new Document() { Name = name, Content = "", CreatedOn = DateTime.Now};
     var workflow = new CreateOrUpdateDocumentWorkflow(this.dataManager, document, string.Empty);
     var result = workflow.Execute();
     if (result.TotalSuccess)
     {
         return RedirectToAction("Edit", new { identifier = document.Identifier });
     }
     else
     {
         throw new Exception("hey there was a problem");
     }
 }