public JsonResult IsPrepaymentAmoutValid(PrepaymentViewModel prepayment) { decimal prepayMinValue = Services.SystemConfig.GetValueByKey(ParamatricBusinessRules.PREPAYMENT_MINIMUM_VALUE.ToString()); if (decimal.Parse(prepayment.Amount) >= prepayMinValue) { return Json(true, JsonRequestBehavior.AllowGet); } return Json(string.Format(NotificationMessage.AmountMustBeGreaterThan, prepayMinValue), JsonRequestBehavior.AllowGet); }
public PaymentViewModel() { CreditCard = new CreditCardViewModel(); Prepayment = new PrepaymentViewModel(); }