Exemple #1
0
        public IActionResult OnPostCreate(DefineCustomerDiscount command)
        {
            var result = new OperationResult();

            if (ModelState.IsValid)
            {
                result = _customerDiscountApplication.Define(command);
            }

            return(new JsonResult(result));
        }
Exemple #2
0
        public JsonResult OnPostCreate(DefineCustomerDiscount command)
        {
            var result = _customerDiscountApplication.Define(command);

            return(new JsonResult(result));
        }
        public JsonResult OnPostCreate(CustomerDiscountDefine define)
        {
            var result = _customerDiscountApplication.Define(define);

            return(new JsonResult(result));
        }