Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public WLCViewModel()
 {
     SingleWLC = new WLC();
     WLCList   = new List <WLC>();
 }