public static IEnumerable <VIEW_JF_Order> ToListViewModel(IEnumerable <JF_Order> list) { var listModel = new List <VIEW_JF_Order>(); foreach (JF_Order item in list) { listModel.Add(VIEW_JF_Order.ToViewModel(item)); } return(listModel); }
public static VIEW_JF_Order ToViewModel(JF_Order model) { VIEW_JF_Order item = new VIEW_JF_Order(); item.Id = model.Id; item.orderNum = model.orderNum; item.total_fee = model.total_fee; item.UserId = model.UserId; item.userOpenId = model.userOpenId; item.userName = model.userName; item.userSex = model.userSex; item.UserTel = model.UserTel; item.UserAddress = model.UserAddress; item.UserPostNum = model.UserPostNum; item.ispay = model.ispay; item.orderTime = model.orderTime; item.payTime = model.payTime; item.sendTime = model.sendTime; item.kdName = model.kdName; item.kdNum = model.kdNum; item.kdMailNum = model.kdMailNum; item.years = model.years; item.months = model.months; 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); }