public ActionResult Cancel(int id) { PlayerTask pt = PlayerTask.Load(id); pt.State = Task.TaskState.Completed; pt.Save(); return(null); }