// GET api/Defa
 public HttpResponseMessage Login(Customers cs)
 {
     int IsOk = db.Customers.Where(x => x.UserName == cs.UserName && x.Password == cs.Password).Count();
     if (IsOk !=1)
     {
         throw new HttpResponseException(Request.CreateResponse(HttpStatusCode.NotFound));
     }
     return Request.CreateResponse(HttpStatusCode.OK);
 }
        // POST api/Default1
        public HttpResponseMessage PostCustomers(Customers customers)
        {
            if (ModelState.IsValid)
            {
                db.Customers.Add(customers);
                db.SaveChanges();

                HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Created, customers);
                response.Headers.Location = new Uri(Url.Link("DefaultApi", new { id = customers.IdCustomer }));
                return response;
            }
            else
            {
                return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
            }
        }
        // PUT api/Default1/5
        public HttpResponseMessage PutCustomers(int id, Customers customers)
        {
            if (!ModelState.IsValid)
            {
                return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
            }

            if (id != customers.IdCustomer)
            {
                return Request.CreateResponse(HttpStatusCode.BadRequest);
            }

            db.Entry(customers).State = EntityState.Modified;

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

            return Request.CreateResponse(HttpStatusCode.OK);
        }