public ActionResult Increment() { var mySession = new MySessionWrapper(Session); mySession.Counter++; return(View("Index")); }
public async Task <ActionResult> IncrementAsync() { await Task.Run(() => { var mySession = new MySessionWrapper(Session); mySession.Counter++; }); return(View("Index")); }