public IHttpActionResult PostIngredientContainer(IngredientContainerDTO dto)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            var ingredientContainer = new IngredientContainer()
            {
                IngredientContainerID = dto.IngredientContainerID,
                Index = dto.Index,
                GroupName = dto.GroupName,
                IngredientID = dto.IngredientID,
                RecipeID = dto.RecipeID
            };

            db.IngredientContainer.Add(ingredientContainer);
            db.SaveChanges();

            return CreatedAtRoute("DefaultApi", new { id = ingredientContainer.IngredientContainerID }, ingredientContainer);
        }
        public IHttpActionResult PutIngredientContainer(int id, IngredientContainerDTO dto)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            var ingredientContainer = new IngredientContainer()
            {
                IngredientContainerID = dto.IngredientContainerID,
                Index = dto.Index,
                GroupName = dto.GroupName,
                IngredientID = dto.IngredientID,
                RecipeID = dto.RecipeID
            };

            if (id != ingredientContainer.IngredientContainerID)
            {
                return BadRequest();
            }

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

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!IngredientContainerExists(id))
                {
                    return NotFound();
                }
                else
                {
                    throw;
                }
            }

            return StatusCode(HttpStatusCode.NoContent);
        }