예제 #1
0
 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));
 }
예제 #2
0
 // PUT: api/Rules/5
 public IHttpActionResult Put(int id, TransactionRule model)
 {
     svc.Update(model);
     return(Ok());
 }