Пример #1
0
        public HttpResponseMessage Deactivate(long id)
        {
            var repo    = new ProductsRepository();
            var results = repo.Deactivate(id);

            return(results ? Request.CreateResponse(HttpStatusCode.OK) : Request.CreateErrorResponse(HttpStatusCode.InternalServerError, "Unable to update"));
        }