Quote: var lst = BusinessLayer.restdetailsBAL.Instance.GetRestDetails(Convert.ToInt32(lblID.Text)).Select(q=> new { Unit=q.Unit, SelPrice=q.SellPrice, Batch=q.Batch, Expiry=q.Expiry }).ToList();
var item = BusinessLayer.restdetailsBAL.Instance.GetRestDetails(Convert.ToInt32(lblID.Text)).Select(q => new { Unit = q.Unit, SelPrice = q.SellPrice, Batch = q.Batch, Expiry = q.Expiry }).FirstOrDefault(); if (item != null) { string unit = item.Unit; var SelPrice = item.SelPrice; var Batch = item.Batch; var Expiry = item.Expiry; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)