public IActionResult Index() { if (!IsLogin()) { TempData["pesan"] = "<span class='alert alert-danger'>Silahkan login dulu untuk masuk kesini</span>"; return(RedirectToAction("Login", "Pengguna")); } var data = _mhs.GetAll(); return(View(data)); }
public IActionResult Index() { if (TempData["pesan"] != null) { ViewBag.pesan = TempData["pesan"].ToString(); } var data = _mhs.GetAll(); return(View(data)); }
public IEnumerable <Mahasiswa> Get() { return(_mhs.GetAll()); }
public IActionResult Index() { var data = _mhs.GetAll(); return(View(data)); }