Exemplo n.º 1
0
 public Bin Get(int binid)
 {
     using (WarehouseDetailsEntities entities = new WarehouseDetailsEntities())
     {
         return(entities.Bins.First(e => e.BinID.Equals(binid)));
     }
 }
Exemplo n.º 2
0
 public IEnumerable <Bin> Get()
 {
     using (WarehouseDetailsEntities entities = new WarehouseDetailsEntities())
     {
         return(entities.Bins.ToList());
     }
 }