public List<AssetDetail> GetAllAssetDetail(string CatrgoryID, string RFTags) { List<AssetDetail> AssdetailList = new List<AssetDetail>(); try { CycleCount objCycleCount = new CycleCount(); objCycleCount.RFTags = RFTags; objCycleCount.CatID = CatrgoryID; DataTable dtasset = objCycleCount.GetAllAssetDetail(); foreach (DataRow drass in dtasset.Rows) { AssetDetail objassetdetail = new AssetDetail(); objassetdetail.Barcode = (drass["TagID"]).ToString(); objassetdetail.Description = drass["Description"].ToString(); AssdetailList.Add(objassetdetail); } } catch (Exception ex) { _log.Error("Error:GetAllAssetDetail:: " + ex.Message + Environment.NewLine + ex.StackTrace); ThrowFaultError(ex.Message, 200); } return AssdetailList; }