예제 #1
0
 public ActionResult DeleteInline(PayablePeriodModel model)
 {
     if (ModelState.IsValid)
     {
         try
         {
             PayablePeriodHelper.Delete(model.Id.ToString());
             return(PartialView("_List", PayablePeriodHelper.GetPayablePeriods(SessionHelper.SOBId)));
         }
         catch (Exception e)
         {
             ViewData["EditError"] = e.Message;
         }
     }
     else
     {
         ViewData["EditError"] = "Please, correct all errors.";
     }
     return(PartialView("_List", PayablePeriodHelper.GetPayablePeriods(SessionHelper.SOBId)));
 }
예제 #2
0
 public ActionResult GetPayablePeriods()
 {
     return(PartialView("_List", PayablePeriodHelper.GetPayablePeriods(SessionHelper.SOBId)));
 }