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

            return(RedirectToAction("Login", "Admin"));
        }
        // GET: JenisTani/Details/5
        public ActionResult Details(int id)
        {
            if ((bool)Session["Login"])
            {
                try
                {
                    MetaniContext context = new MetaniContext();
                    //Console.WriteLine(namaJenisTani)

                    return(View(context.FindJenisTani(id)));
                }
                catch
                {
                    return(RedirectToAction("Index"));
                };
            }

            return(RedirectToAction("Login", "Admin"));
        }