public string SetStoreName(string poi_id) { string result = string.Empty; WXStoreHelper.Store store = (from c in this.AllStores where c.poi_id == poi_id select c).FirstOrDefault(); if (store != null) { result = ((!string.IsNullOrEmpty(store.branch_name)) ? $"{store.business_name}({store.branch_name})" : store.business_name); } return(result); }
private string GetStoreName(long device_id) { string result = string.Empty; WXStoreHelper.Device device = (from c in this.Devices where c.device_id == device_id select c).FirstOrDefault(); if (device != null) { WXStoreHelper.Store store = (from c in this.AllStores where c.poi_id == device.poi_id.ToString() select c).FirstOrDefault(); if (store != null) { result = ((!string.IsNullOrEmpty(store.branch_name)) ? $"{store.business_name}({store.branch_name})" : store.business_name); } } return(result); }