public ActionResult Create(AdvancePayment advancePayment)
        {
            if (ModelState.IsValid)
            {
                Service.Add(advancePayment);
                return RedirectToAction("Index");
            }

            return View(advancePayment);
        }
 public ActionResult Edit( AdvancePayment advancePayment)
 {
     if (ModelState.IsValid)
     {
         Service.Update(advancePayment);
         return RedirectToAction("Index");
     }
     Service.Update(advancePayment);
     return View(advancePayment);
 }