public ActionResult Edit(tbl_Notes model) { if (!User.Identity.IsAuthenticated) { return(RedirectToAction("DangNhap", "Login")); } if (dao.EditNote(model)) { return(RedirectToAction("Index")); } else { return(View(model)); } }