예제 #1
0
        public bool SaveChanges()
        {
            try
            {
                _context.SaveChanges();
                return(true);
            }
#pragma warning disable 0168
            catch (Exception e)
#pragma warning restore 0168
            {
                return(false);
            }
        }
예제 #2
0
 public void CreateSeller(Seller seller)
 {
     db.Sellers.Add(seller);
     db.SaveChanges();
 }
예제 #3
0
 public void CreateSales(Sales sales)
 {
     db.Saleses.Add(sales);
     db.SaveChanges();
 }
 public void CreateProduct(Product product)
 {
     db.Products.Add(product);
     db.SaveChanges();
 }