public ActionResult Edit([Bind(Include = "RuleId,RegularExpression,RegExGroup,Query,RuleStatus,LastUpdateUser")] Data.Rule rule) { if (ModelState.IsValid) { service.Update(rule); return(RedirectToAction("Index")); } return(View(rule)); }
// PUT: api/Rules/5 public IHttpActionResult Put(int id, TransactionRule model) { svc.Update(model); return(Ok()); }