public virtual async Task CreateAsync(Good Good) { await ValidateGoodAsync(Good); await GoodRepository.InsertAsync(Good); }
/// <summary> /// 更新内容 /// </summary> /// <param name="Good"></param> /// <returns></returns> public virtual async Task UpdateAsync(Good Good) { await ValidateGoodAsync(Good); await GoodRepository.UpdateAsync(Good); }
protected virtual async Task ValidateGoodAsync(Good good) { }