public void GetLocationDough(string site) { EFData ef = new EFData(); foreach (var item in ef.ReadLocation()) { if (item.Name == site) { Dough = double.Parse(item.dough.ToString()); } } }
public int FindLocationByName(string itemName) { EFData ed = new EFData(); foreach (var item in ed.ReadLocation()) { if (item.Name == itemName) { return(item.LocationId); } } throw new ArgumentNullException("No Location Selected"); }