Beispiel #1
0
 public static bool insertSupplier(APCEntities APCContext, string name)
 {
     if (name.Trim() != "")
     {
         Supplier supplier = new Supplier();
         supplier.Name = name;
         APCContext.AddToSupplier(supplier);
         APCContext.SaveChanges();
         return true;
     }
     else
         return false;
 }
Beispiel #2
0
 public static bool insertSupplier(APCEntities APCContext, string name)
 {
     if (name.Trim() != "")
     {
         Supplier supplier = new Supplier();
         supplier.Name = name;
         APCContext.AddToSupplier(supplier);
         APCContext.SaveChanges();
         return(true);
     }
     else
     {
         return(false);
     }
 }