示例#1
0
 public async Task <IActionResult> GetZonesInZoneAsync([FromRoute] Zone parent)
 {
     try
     {
         return(Ok(await _context.GetZonesInZone(parent)));
     }
     catch (ArgumentException e)
     {
         return(BadRequest(new { error = e.Message }));
     }
 }