public List <EventModels> GetListEvent(STEventVP param) { List <EventModels> ret = new List <EventModels>(); EventModels item; List <STEvent> data = new List <STEvent>(); string msg; CEvent clEvent = new CEvent(LocalData.UserId(), LocalData.CSDbCards1(), LocalData.CSDbCards2(), LocalData.LogPath()); try { int retvalue = clEvent.GetData(param, out data, out msg); foreach (STEvent row in data) { item = new EventModels(); item.IfsfCode = row.ifsfcode; item.Country = row.country; item.Pan = row.maskedpan; item.LocalTime = row.ltime.ToString("yyyy-MM-dd HH:mm:ss"); item.ProcCode = row.proccode; item.Text = row.text; item.UTDCode = row.utdcode; item.Msg = row.msg; ret.Add(item); } } catch (Exception ex) { msg = ex.Message; } return(ret); }