public ActionResult Create(NotificationTemplate notificationtemplate)
        {
            if (ModelState.IsValid)
            {
                db.NotificationTemplates.Add(notificationtemplate);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            ViewBag.type_id = new SelectList(db.NotificationTypes, "id", "name", notificationtemplate.type_id);
            return View(notificationtemplate);
        }
 public ActionResult Edit(NotificationTemplate notificationtemplate)
 {
     if (ModelState.IsValid)
     {
         db.Entry(notificationtemplate).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     ViewBag.type_id = new SelectList(db.NotificationTypes, "id", "name", notificationtemplate.type_id);
     return View(notificationtemplate);
 }