public ActionResult Create(string namaJenisTanah) { if ((bool)Session["Login"]) { try { MetaniContext context = new MetaniContext(); context.PostJenisTanah(namaJenisTanah); return(RedirectToAction("Index")); } catch { return(View()); } } return(RedirectToAction("Login", "Admin")); }