public ActionResult ViewNotice2() { Notice1 dbhandle = new Notice1(); ModelState.Clear(); return(View(dbhandle.viewNotices())); }
public ActionResult Notice(Notice1 notice) { if (Request.Cookies.Get("admin") != null) { return(RedirectToAction("Home", "ERP")); } else { notice.Data = notice.viewNotices(); return(View(notice)); } }