示例#1
0
        public virtual async Task CreateAsync(Good Good)
        {
            await ValidateGoodAsync(Good);

            await GoodRepository.InsertAsync(Good);
        }
示例#2
0
        /// <summary>
        /// 更新内容
        /// </summary>
        /// <param name="Good"></param>
        /// <returns></returns>
        public virtual async Task UpdateAsync(Good Good)
        {
            await ValidateGoodAsync(Good);

            await GoodRepository.UpdateAsync(Good);
        }
示例#3
0
 protected virtual async Task ValidateGoodAsync(Good good)
 {
 }