Exemplo n.º 1
0
 public IActionResult Delete(string id, string title)
 {
     try
     {
         return(Ok(_service.DeleteRecommend(id, title)));
     }
     catch (RecommendNotFound ex)
     {
         return(Conflict(ex.Message));
     }
 }
Exemplo n.º 2
0
 public bool DeleteRecommend(string id)
 {
     return(_recommendService.DeleteRecommend(id));
 }