public int AddBargain([FromForm] Model.Bargain bargain) { try { logger.Debug($"用户对砍价列表进行添加,添加的名称为:{bargain.BargainName}"); int i = _bargainRepository.Insert(bargain); return(i); } catch (Exception) { throw; } }
public int AddBargain(Model.Bargain bargain) { int i = _bargainRepository.Insert(bargain); return(i); }