public IHttpActionResult Update([FromBody] Fruit fruit)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }

            var updated = _fruitRepository.UpdateFruitbool(fruit);

            if (!updated)
            {
                return(NotFound());
            }

            return(Ok());
        }