public ActionResult Index(PaymentListViewModel model, string message = "") { ViewBag.ErrorMessage = message; SessionHelper.Payment = null; model.SOBId = SessionHelper.SOBId; return View(model); }
public static PaymentListViewModel GetPayments(long sobId, long bankId, long vendorId, long periodId) { PaymentListViewModel model = new PaymentListViewModel(); model.Payments = service.GetAll(AuthenticationHelper.CompanyId.Value, vendorId, bankId, sobId, periodId).ToList() .Select(x => new PaymentViewModel(x)).ToList(); return model; }
public ActionResult PaymentPartial(PaymentListViewModel model) { return PartialView("_List", PaymentHelper.GetPayments(SessionHelper.SOBId, model.BankId, model.VendorId, model.PeriodId)); }