Example #1
0
        public static HeaderTransaction insertHeaderTransaction(HeaderTransaction newHeader)
        {
            db.HeaderTransactions.Add(newHeader);
            db.SaveChanges();

            return(newHeader);
        }
Example #2
0
 public static void create(PaymentType newPaymentType)
 {
     db.PaymentTypes.Add(newPaymentType);
     db.SaveChanges();
 }
 public static void insert(User newUser)
 {
     db.Users.Add(newUser);
     db.SaveChanges();
 }
 public static void create(Cart newCart)
 {
     db.Carts.Add(newCart);
     db.SaveChanges();
 }
Example #5
0
 public static void create(Product newProduct)
 {
     db.Products.Add(newProduct);
     db.SaveChanges();
 }
 public static void create(ProductType newType)
 {
     db.ProductTypes.Add(newType);
     db.SaveChanges();
 }