public void DeleteEntity_Should_throw_ValidationException_When_pilot_with_id_doesnt_exist_in_db()
        {
            // Arrange

            // Assert and Act
            Assert.Throws <ValidationException>(() => _pilotService.DeleteEntity(500000));
        }
 public IActionResult Delete(int id)
 {
     try
     {
         pilotService.DeleteEntity(id);
     }
     catch (ValidationException e)
     {
         return(BadRequest(new { Exception = e.Message }));
     }
     return(NoContent());
 }