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