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