public void BindPermitInfoGrid() { using (_model = new JobModel()) { if (_view.JobId.HasValue) _view.PermitInfoGridDataSource = _model.GetPermitInfoByJob(_view.JobId.Value); } }