コード例 #1
0
        public ActionResult Create(AdvancePayment advancePayment)
        {
            if (ModelState.IsValid)
            {
                Service.Add(advancePayment);
                return RedirectToAction("Index");
            }

            return View(advancePayment);
        }
コード例 #2
0
 public ActionResult Edit( AdvancePayment advancePayment)
 {
     if (ModelState.IsValid)
     {
         Service.Update(advancePayment);
         return RedirectToAction("Index");
     }
     Service.Update(advancePayment);
     return View(advancePayment);
 }