public bool Post(DocumentCreationRequest request) { var command = new CreateDocumentCommand(request.Name) {Session = DocSession}; command.Execute(); return true; }
public ActionResult Create(string name) { var command = new CreateDocumentCommand(name){Session = DocSession}; command.Execute(); return RedirectToAction("Edit", new {id = command.IdToBeAssigned}); }