コード例 #1
0
 public ActionResult Edit(Newsletter newsletter)
 {
     if (ModelState.IsValid)
     {
         NewsletterServices.SaveEntity(newsletter);
         return(RedirectToAction("Index"));
     }
     return(View(newsletter));
 }
コード例 #2
0
 private void NewsletterInProcess(Newsletter newsletter, bool state)
 {
     newsletter.InProcess = state;
     NewsletterServices.SaveEntity(newsletter);
 }