Skip to content

Commit

Permalink
Updated WebProducerConsumer: now the form doesn't reload the page
Browse files Browse the repository at this point in the history
  • Loading branch information
Kralizek committed Sep 14, 2015
1 parent 933a992 commit 7d3397c
Show file tree
Hide file tree
Showing 15 changed files with 12,125 additions and 16,081 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,17 @@ public async Task<ActionResult> PostValue(string value)

return RedirectToAction("Index");
}

[HttpPost]
[Route("ajax-post-value")]
public async Task<ActionResult> AjaxPostValue(string value)
{
await _bus.InvokeCommand(new ReverseStringCommand
{
Value = value
});

return Content("OK");
}
}
}
Loading

0 comments on commit 7d3397c

Please sign in to comment.