// POST tables/Ride public async Task <IHttpActionResult> PostRide(Ride item) { var employee = GetEmployee(item); if (employee == null) { return(NotFound()); } item.RideId = _context.Rides.Max(r => r.RideId) + 1; item.EmployeeId = employee.EmployeeId; item.Employee = null; Ride current = await InsertAsync(item); if (current != null) { // After creating the ride... // Create invoice, Queue Message and Submit to Azure Queue await InvoiceService.CreateInvoice(GetInvoice(current, employee)); // Add Customer Contact´s data to SaleForce CRM await _salesforceService.AddContact(item, employee); } return(CreatedAtRoute("Tables", new { id = current.Id }, current)); }