public void Add(Tbl_Entity entity)
 {
     _dbSet.Add(entity);
     _DBEntity.SaveChanges();
 }
Example #2
0
 public bool CreateNewBrand(tbl_Brand Brand)
 {
     create.tbl_Brand.AddObject(Brand);
     return(create.SaveChanges() > 0);
 }
Example #3
0
 public bool registration(tbl_Customer customer)
 {
     customerRegistration.tbl_Customer.AddObject(customer);
     return(customerRegistration.SaveChanges() > 0);
 }
 public bool CreateProductCategory(tbl_ProductType ProductType)
 {
     create.tbl_ProductType.AddObject(ProductType);
     return(create.SaveChanges() > 0);
 }
Example #5
0
 public bool RegisterSeller(tbl_Seller NewSeller)
 {
     create.tbl_Seller.AddObject(NewSeller);
     return(create.SaveChanges() > 0);
 }
Example #6
0
 public void SaveChanges()
 {
     DBEntity.SaveChanges();
 }
Example #7
0
 public bool OnlineProduct(tbl_Product NewProduct)
 {
     Create.tbl_Product.AddObject(NewProduct);
     return(Create.SaveChanges() > 0);
 }