public HttpResponseMessage Activate(long id) { var repo = new ProductsRepository(); var results = repo.Activate(id); return(results ? Request.CreateResponse(HttpStatusCode.OK) : Request.CreateErrorResponse(HttpStatusCode.InternalServerError, "Unable to update")); }