Ejemplo n.º 1
0
 public IActionResult Create([Bind("Id,PaymentTypeName")] PaymentType paymentType)
 {
     if (ModelState.IsValid)
     {
         paymentTypeService.Add(paymentType);
         return(RedirectToAction(nameof(Index)));
     }
     return(View(paymentType));
 }
 public void POST(PaymentType paymentType)
 {
     _paymentsTypeService.Add(paymentType);
 }