public async Task <IActionResult> Edit(PaymentTypeDto paymentTypeDto) { if (ModelState.IsValid) { await paymentTypeService.Edit(paymentTypeDto); return(RedirectToAction("Index")); } return(View(paymentTypeDto)); }
public async Task <IActionResult> Edit(PaymentTypeDto paymentTypeDto) { if (ModelState.IsValid) { await paymentTypeService.Edit(paymentTypeDto); return(RedirectToAction("Index")); } return(View(paymentTypeDto)); }