Пример #1
0
 public IActionResult GetByKeyWord(string KeyWord)
 {
     try
     {
         return(Ok(_service.GetByKeyWord(KeyWord)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
Пример #2
0
 public IActionResult GetByKeyWord(string keyword)
 {
     return(Ok(_service.GetByKeyWord(keyword)));
 }