Example #1
0
 public async Task <IActionResult> GetZoneElements([FromRoute] Zone zone)
 {
     try
     {
         return(Ok(await elementService.GetElementsAsync(zone)));
     }
     catch (ArgumentException e)
     {
         return(BadRequest(new { error = e.Message }));
     }
 }