public static YX_sysLog ToEntity(VIEW_YX_sysLog model) { YX_sysLog item = new YX_sysLog(); item.Id = model.Id; item.userNum = model.userNum; item.userId = model.userId; item.userRight = model.userRight; item.logcate = model.logcate; item.logContent = model.logContent; item.logIp = model.logIp; item.logTime = model.logTime; item.remark1 = model.remark1; item.remark2 = model.remark2; item.remark3 = model.remark3; item.flat1 = model.flat1; item.flat2 = model.flat2; item.remark4 = model.remark4; item.remark5 = model.remark5; item.remark6 = model.remark6; item.flat7 = model.flat7; item.flat8 = model.flat8; item.RegTim1 = model.RegTim1; item.RegTim2 = model.RegTim2; return(item); }
public static IEnumerable <VIEW_YX_sysLog> ToListViewModel(IEnumerable <YX_sysLog> list) { var listModel = new List <VIEW_YX_sysLog>(); foreach (YX_sysLog item in list) { listModel.Add(VIEW_YX_sysLog.ToViewModel(item)); } return(listModel); }