Exemple #1
0
 public IActionResult Get(string id)
 {
     try
     {
         return(Ok(_repository.Load(id)));
     }
     catch (Exception)
     {
         return(NotFound());
     }
 }
 public WeatherStation Get(string id)
 {
     return(_repository.Load(id));
 }