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