public IActionResult OnPostCreate(DefineCustomerDiscount command) { var result = new OperationResult(); if (ModelState.IsValid) { result = _customerDiscountApplication.Define(command); } return(new JsonResult(result)); }
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)); }