Esempio n. 1
0
 public IActionResult GetByCategory(string Category)
 {
     try
     {
         return(Ok(_service.GetByCategory(Category)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
 public IActionResult GetByIdCategory(string catName)
 {
     return(Ok(_service.GetByCategory(catName)));
 }