Example #1
0
 public ActionResult <Coffee> Get(int id)
 {
     //exceptions!
     if (id < 1)
     {
         return(BadRequest("Id must be greater than 0!"));
     }
     //Needs additional Exception for ID Match!
     return(_CoffeeService.FindCoffeeById(id));
 }