public IHttpActionResult GetCorrectNumCar(int num) { try { IDSDirectory ids_dir = new IDSDirectory(service.WebAPI_IDS); bool correct = ids_dir.IsCorrectNumCar(num); return(Ok(correct)); } catch (Exception e) { return(BadRequest(e.Message)); } }
public void IDSDirectory_IsCorrectNumCar() { IDSDirectory ids = new IDSDirectory(service.Test); bool res = ids.IsCorrectNumCar(12345678); }