public IActionResult OnPostEdit(EditCustomerDiscountVM command) { if (!ModelState.IsValid) { return(RedirectToPage("Index")); } var result = _customerDiscountApplication.Edit(command); return(new JsonResult(result)); }
public IActionResult OnPostEdit(EditCustomerDiscount command) { var result = new OperationResult(); if (ModelState.IsValid) { result = _customerDiscountApplication.Edit(command); } return(new JsonResult(result)); }
public JsonResult OnPostEdit(EditCustomerDiscount command) { var result = _customerDiscountApplication.Edit(command); return(new JsonResult(result)); }
public JsonResult OnPostEdit(CustomerDiscountEdit edit) { var result = _customerDiscountApplication.Edit(edit); return(new JsonResult(result)); }