예제 #1
0
        public ActionResult <LiqPayCheckoutModel> Get(string donationAmount, int?projectId = null)
        {
            if (projectId == default(int))
            {
                throw new ArgumentException($"{nameof(projectId)} can not be 0");
            }

            if (string.IsNullOrEmpty(donationAmount))
            {
                throw new ArgumentException($"{nameof(donationAmount)} can not be null");
            }

            return(_donationService.GetLiqPayCheckoutModel(donationAmount, projectId, HttpContext));
        }