Ejemplo n.º 1
0
 public void Handle(CreateBlog createBlog)
 {
     var blog = _factory.Create(createBlog.Id);
     blog.Create();
     blog.SetName(createBlog.Name);
     blog.SetTagLine(createBlog.TagLine);
     blog.AssignOwner(createBlog.Owner);
 }
Ejemplo n.º 2
0
 //[Authorize]
 public ActionResult Create(CreateBlog createBlog)
 {
     _commandCoordinator.Handle(createBlog);
     return RedirectToAction("List", "Posts", new { blogId =  createBlog.Id});
 }