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