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