public ActionResult <Fruit> GetFruitById(Guid id) { try { var fruit = _fruitService.GetFruitById(id); return(Ok(fruit)); } catch (Exception) { return(StatusCode(500)); } }