public HttpResponseMessage OnOrderUpdater(string sku, int count) { var repo = new ProductsRepository(); var results = repo.CreateReorder(sku, count); return(results == 1 ? Request.CreateResponse(HttpStatusCode.Created) : Request.CreateErrorResponse(HttpStatusCode.InternalServerError, "Unable to process request")); }