public async Task <IHttpActionResult> AddCustomer([FromBody] UpdateCustomerRequest createRequest) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var customer = await _customerService.CreateCustomerAsync(createRequest); var location = $"/api/customers/create/{customer.Id}"; return(Created <CustomerFullInfo>(location, customer)); }