public async Task <ActionResult <Customer> > Post([FromBody] Customer model) { return(await _customerRepo.AddNew(model)); }
public async Task <IActionResult> Create(Customer customer) { await _customerRepository.AddNew(customer); return(RedirectToAction(nameof(Index))); }