Example #1
0
 public ActionResult <Ingredient> GetOne(int id)
 {
     try
     {
         return(Ok(_service.GetOne(id)));
     }
     catch (System.Exception e)
     {
         return(BadRequest(e.Message));
     }
 }