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);
        }
예제 #2
0
 public PaymentViewModel()
 {
     CreditCard = new CreditCardViewModel();
     Prepayment = new PrepaymentViewModel();
 }