public IQueryable <Location> AllLocations()
 {
     return(Container.Instances <Location>());
 }
 public IQueryable <Product> AutoComplete0WorkOrders([MinLength(2)] string name)
 {
     return(Container.Instances <Product>().Where(p => p.Name.Contains(name)));
 }
 public void GenerateInfoAndWarning()
 {
     Container.InformUser("Inform User of something");
     Container.WarnUser("Warn User of something else ");
 }
Esempio n. 4
0
 public IQueryable <Product> AutoComplete0OpenPurchaseOrdersForProduct([MinLength(2)] string name)
 {
     return(Container.Instances <Product>().Where(product => product.Name.ToUpper().StartsWith(name.ToUpper())));
 }
Esempio n. 5
0
 public IQueryable <Vendor> AutoComplete0ListPurchaseOrders([MinLength(2)] string name)
 {
     return(Container.Instances <Vendor>().Where(v => v.Name.ToUpper().StartsWith(name.ToUpper())));
 }
 public Address CreateNewAddress() {
     var _Address = Container.NewTransientInstance<Address>();
     _Address.AddressFor = this;
     return _Address;
 }