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