public WLC Map(WLCDAO _CreateListToMap) { WLC _WLCToCreate = new WLC() { Gender = _CreateListToMap.Gender, Age = _CreateListToMap.Age, Height = _CreateListToMap.Height, Weight = _CreateListToMap.Weight, Goal = _CreateListToMap.Goal, GoalTime = _CreateListToMap.GoalTime, User_ID = _CreateListToMap.User_ID, ID = _CreateListToMap.ID, Result = _CreateListToMap.Result, }; return(_WLCToCreate); }
public List <WLC> Map(List <WLCDAO> _WLCListToMap) { List <WLC> _WLCListToReturn = new List <WLC>(); foreach (WLCDAO _WLCToMap in _WLCListToMap) { WLC _WLCToView = new WLC() { Gender = _WLCToMap.Gender, Age = _WLCToMap.Age, Height = _WLCToMap.Height, Weight = _WLCToMap.Weight, Goal = _WLCToMap.Goal, GoalTime = _WLCToMap.GoalTime, User_ID = _WLCToMap.User_ID, ID = _WLCToMap.ID, Result = _WLCToMap.Result, }; _WLCListToReturn.Add(_WLCToView); } return(_WLCListToReturn); }
public WLCViewModel() { SingleWLC = new WLC(); WLCList = new List <WLC>(); }