Exemplo n.º 1
0
 public bool Add(BankCard bankCard)
 {
     db.BankCards.Add(bankCard);
     if (Convert.ToBoolean(db.SaveChanges()))
     {
         return(true);
     }
     return(false);
 }
 public bool Add(Buy buy)
 {
     db.Buys.Add(buy);
     if (Convert.ToBoolean(db.SaveChanges()))
     {
         return(true);
     }
     return(false);
 }
Exemplo n.º 3
0
 public bool Add(CategoriesEntity categoriesEntity)
 {
     db.CategoriesEntities.Add(categoriesEntity);
     if (Convert.ToBoolean(db.SaveChanges()))
     {
         return(true);
     }
     return(false);
 }
 public bool Add(Product product)
 {
     db.Products.Add(product);
     if (Convert.ToBoolean(db.SaveChanges()))
     {
         return(true);
     }
     return(false);
 }
 public bool Add(CompanyCategory companyCategory)
 {
     db.CompanyCategories.Add(companyCategory);
     if (Convert.ToBoolean(db.SaveChanges()))
     {
         return(true);
     }
     return(false);
 }
Exemplo n.º 6
0
 public bool Add(CategoriesFeature categoriesFeature)
 {
     db.CategoriesFeatures.Add(categoriesFeature);
     if (Convert.ToBoolean(db.SaveChanges()))
     {
         return(true);
     }
     return(false);
 }
 public bool Add(Person person)
 {
     db.People.Add(person);
     if (Convert.ToBoolean(db.SaveChanges()))
     {
         return(true);
     }
     return(false);
 }
Exemplo n.º 8
0
 public bool Add(ProductCategory productCategory)
 {
     db.ProductCategories.Add(productCategory);
     if (Convert.ToBoolean(db.SaveChanges()))
     {
         return(true);
     }
     return(false);
 }
 public bool Add(PhoneSupport phoneSupport)
 {
     db.PhoneSupports.Add(phoneSupport);
     if (Convert.ToBoolean(db.SaveChanges()))
     {
         return(true);
     }
     return(false);
 }