Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Hero Sample 2 for Blog post
// GET: /ToDo/Delete/5
[AbilityMvcAuthorization(Ability = "Delete")]
public ActionResult Delete(int id = 0)
ToDo todo = db.Items.Find(id);
if (todo == null)
return HttpNotFound();
return View(todo);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.