public ActionResult Index(FormCollection form, int?id)
        {
            string strDDLValue = Request.Form["Status"].ToString();
            var    dyrule      = configure.FixedSearchByRuleId((int)id);

            configure.ApproveRejectRule(dyrule, strDDLValue);
            return(RedirectToAction("Index"));
        }
Example #2
0
        public ActionResult Index(FormCollection form, int?id)
        {
            string strDDLValue   = Request.Form["Status"].ToString();
            var    fixrule       = configure.FixedSearchByRuleId((int)id);
            bool   statusUpdated = configure.ApproveRejectRule(fixrule, strDDLValue);

            if (statusUpdated)
            {
                return(RedirectToAction("Index"));
            }
            else
            {
                ViewBag.Error = "Error occured !";
                return(RedirectToAction("Index"));
            }
        }