public int Update(UserInfo user, Goods good, SaleInfo sale) { good.UserInfoId = user.Id; Update(good); sale.GoodsId = good.Id; SaleInfoServices saleBll = new SaleInfoServices(); saleBll.Update(sale); return(SaveChanges()); }
public int Add(UserInfo user, Goods good, SaleInfo sale) { Add(good); SaleInfoServices saleBll = new SaleInfoServices(); saleBll.Add(sale); good.UserInfoId = user.Id; sale.Goods = good; return(SaveChanges()); }