public async Task <IActionResult> Post([FromBody] PlaneDTO planeDTO) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } try { await planeService.CreateEntityAsync(planeDTO); } catch (ValidationException e) { return(BadRequest(new { Exception = e.Message })); } return(Ok(planeDTO)); }