public void DoAction(JobIndexVM vm) { if (vm.JobIndex.Id != 0) { basicInfoController.ShowJobIndexCustomFieldManageView(vm.JobIndex, ActionType.ManageJobIndexCustomFields); } else { basicInfoController.ShowJobIndexCustomFieldManageView(vm.JobIndex, ActionType.AddJobIndexCustomFields); } }