// POST: api/Shipper public async Task <HttpResponseMessage> CreateShipper([FromBody] Shipper value) { var response = new SingleModelResponse <Shipper>() as ISingleModelResponse <Shipper>; try { var entity = await Task.Run(() => { return(BusinessObject.CreateShipper(value)); }); response.Model = entity; } catch (Exception ex) { ExceptionHelper.Publish(ex); response.DidError = true; response.ErrorMessage = ex.Message; } return(response.ToHttpResponse(Request)); }