public async Task <CommonResponse> AddCustomers(CustomerModel customerModel) { return(await _customerRepository.AddCustomers(customerModel)); }
public IActionResult Create(Customer customer) { _customerRepository.AddCustomers(customer); return(RedirectToAction(nameof(Index))); }