Ejemplo n.º 1
0
 public Supplier getNorthSupplier(Libraries.Supplier supplier)
 {
     return(new Supplier
     {
         Address = supplier.address,
         ContactName = supplier.contactName,
         ContactTitle = supplier.contactTitle,
         Country = supplier.country,
         Fax = supplier.fax,
         SupplierID = supplier.id,
         CompanyName = supplier.name
     });
 }
Ejemplo n.º 2
0
 public bool modify(Libraries.Supplier supplier)
 {
     context.Suppliers.Remove(getNorthSupplier(getSupplier(supplier.id)));
     context.Suppliers.Add(getNorthSupplier(supplier));
     return(true);
 }
Ejemplo n.º 3
0
 public bool addSupplier(Libraries.Supplier supplier)
 {
     context.Suppliers.Add(getNorthSupplier(supplier));
     return(true);
 }