// GET: JenisTani/Delete/5 public ActionResult Delete(int id) { if ((bool)Session["Login"]) { MetaniContext context = new MetaniContext(); return(View(context.FindHasilTaniJoin(id))); } return(RedirectToAction("Login", "Admin")); }