public async Task <IActionResult> AddCustomer(Customer model) { if (model == null) { return(BadRequest()); } var cust = await _repo.AddCustomerAsync(model); if (cust != null) { return(Ok()); } return(BadRequest()); }
public async Task <IActionResult> AddCustomer(Customer model) { if (model == null) { return(BadRequest()); } var cust = await _repo.AddCustomerAsync(model); if (cust != null) { return(Ok()); } return(BadRequest()); }