public ActionResult Edit(TagInputModel model)
 {
     var tag = mediator.Send(model.ToUpdateTagCommand());
     UpdateTagSelectList();
     this.Flash("success", string.Format("Successfully updated Tag: {0}", tag.Description));
     return RedirectToAction("Index");
 }
 public ActionResult New(TagInputModel model)
 {
     Contract.Requires<ArgumentNullException>(model != null);
     mediator.Send(model.ToCreateTagCommand());
     UpdateTagSelectList();
     this.Flash("success", string.Format("Successfully created new Tag: {0}", model.Description));
     return RedirectToAction("Index");
 }
 public ActionResult New()
 {
     var model = new TagInputModel();
     return View("New", model);
 }
 public ActionResult Edit(TagByIdQuery query)
 {
     var tag = mediator.Request(query);
     var model = new TagInputModel(tag);
     return View("Edit", model);
 }