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