foreach (DataRow dr in dt.Rows) { CallEntity callSummaryEntity = new CallEntity(); callSummaryEntity.Department = (string.IsNullOrEmpty(dr["DEPTNAME"].ToString())) ? string.Empty : dr["DEPTNAME"].ToString(); //callSummaryEntity.CallType = (string.IsNullOrEmpty(dr["CallType"].ToString())) ? string.Empty : dr["CallType"].ToString(); objects.Add(callSummaryEntity); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)