public HttpResponseMessage AddCliente(tb_cliente_empresa tb_cliente_empresa)
        {
            if (ModelState.IsValid)
            {
                db.tb_cliente_empresa.Add(tb_cliente_empresa);
                db.SaveChanges();

                HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Created, tb_cliente_empresa);
                response.Headers.Location = new Uri(Url.Link("BreezeApi", new { id = tb_cliente_empresa.id_cliente }));
                return response;
            }
            else
            {
                return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
            }
        }
        public HttpResponseMessage UpdateCliente(long id, tb_cliente_empresa tb_cliente_empresa)
        {
            if (!ModelState.IsValid)
            {
                return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
            }

            if (id != tb_cliente_empresa.id_cliente)
            {
                return Request.CreateResponse(HttpStatusCode.BadRequest);
            }

            db.Entry(tb_cliente_empresa).State = System.Data.EntityState.Modified;

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException ex)
            {
                return Request.CreateErrorResponse(HttpStatusCode.NotFound, ex);
            }

            return Request.CreateResponse(HttpStatusCode.OK);
        }