public ActionResult Delete(Guid?id) { if (!User.Identity.IsAuthenticated) { return(RedirectToAction("DangNhap", "Login")); } if (id == null) { return(RedirectToAction("Index")); } dao.DeleteNote(id.Value); return(RedirectToAction("Index")); }