public ActionResult Create(NoticeModel noticemodel)
        {
            if (ModelState.IsValid)
            {
                db.Notices.Add(noticemodel);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(noticemodel);
        }
 public ActionResult Edit(NoticeModel noticemodel)
 {
     if (ModelState.IsValid)
     {
         db.Entry(noticemodel).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(noticemodel);
 }