public DBProcessResult DeleteVehicle(Guid code) { DBProcessResult result = new DBProcessResult(); try { IEMVehicleService service = new EMVehicleService(); service.Delete(code); result.IsSuccess = true; } catch (Exception ex) { result.IsSuccess = false; result.Message = ex.Message; } return result; }