public ActionResult Create(RuleParameterValue ruleparametervalue)
        {
            if (ModelState.IsValid)
            {
                ruleparametervalue.Id = Guid.NewGuid();
                db.RuleParameterValues.Add(ruleparametervalue);
                db.SaveChanges();
                //return RedirectToAction("Index");
                return BreadCrum.RedirectToPreviousAction(Session, ControllerName);

            }

            ViewBag.RuleParameterId = new SelectList(db.RuleParameters, "Id", "Name", ruleparametervalue.RuleParameterId);
            return View(ruleparametervalue);
        }
 public ActionResult Edit(RuleParameterValue ruleparametervalue)
 {
     if (ModelState.IsValid)
     {
         db.Entry(ruleparametervalue).State = EntityState.Modified;
         db.SaveChanges();
         return BreadCrum.RedirectToPreviousAction(Session, ControllerName);
     }
     ViewBag.RuleParameterId = new SelectList(db.RuleParameters, "Id", "Name", ruleparametervalue.RuleParameterId);
     return View(ruleparametervalue);
 }