コード例 #1
0
        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());
        }
コード例 #2
0
        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());
        }