/// <summary> /// 添加地区 /// </summary> public void Create(Discipline discipline) { EventBus <Discipline> .Instance().OnBefore(discipline, new CommonEventArgs(EventOperationType.Instance().Create())); disciplineRepository.Insert(discipline); EventBus <Discipline> .Instance().OnAfter(discipline, new CommonEventArgs(EventOperationType.Instance().Create())); }
public void Insert(Discipline discipline) { rep.Insert(discipline); }