Ejemplo n.º 1
0
 public IActionResult GetAll()
 {
     try
     {
         List <Theme> List = _iServiceTheme.FindById();
         return(BuildJsonResponse(200, "Succès", List));
     }
     catch (Exception e)
     {
         return(BuildJsonResponse(500, "Erreur serveur", null, e.Message));
     }
 }
Ejemplo n.º 2
0
 public IActionResult GetById(int id)
 {
     try
     {
         Theme theme = _serviceTheme.FindById(id);
         return(BuildJSonResponse(200, "Succès", theme));
     }
     catch (Exception e)
     {
         return(BuildJSonResponse(500, "Erreur serveur", null, e.Message));
     }
 }