// POST api/Grocery
        public HttpResponseMessage PostGrocery(Grocery grocery)
        {
            if (ModelState.IsValid)
            {
                db.Db.Add(grocery);
                db.SaveChanges();

                HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Created, grocery);
                response.Headers.Location = new Uri(Url.Link("DefaultApi", new { id = grocery.Id }));
                return response;
            }
            else
            {
                return Request.CreateResponse(HttpStatusCode.BadRequest);
            }
        }
        // PUT api/Grocery/5
        public HttpResponseMessage PutGrocery(int id, Grocery grocery)
        {
            if (ModelState.IsValid && id == grocery.Id)
            {
                db.Entry(grocery).State = EntityState.Modified;

                try
                {
                    db.SaveChanges();
                }
                catch (DbUpdateConcurrencyException)
                {
                    return Request.CreateResponse(HttpStatusCode.NotFound);
                }

                return Request.CreateResponse(HttpStatusCode.OK);
            }
            else
            {
                return Request.CreateResponse(HttpStatusCode.BadRequest);
            }
        }