Exemplo n.º 1
0
        public weightsDAO map(weightsModel _weightsMod)
        {
            weightsDAO _weightsRedMod = new weightsDAO();

            _weightsRedMod.WeightsID        = _weightsMod.WeightsID;
            _weightsRedMod.lbs              = _weightsMod.lbs;
            _weightsRedMod.FK_routineWorkID = _weightsMod.FK_routineWorkID;

            return(_weightsRedMod);
        }
Exemplo n.º 2
0
        public List <weightsModel> map(List <weightsDAO> _dataWeights)
        {
            List <weightsModel> _pressWeights = new List <weightsModel>();

            foreach (weightsDAO _dWeights in _dataWeights)
            {
                weightsModel _pWeights = new weightsModel();
                _pWeights.WeightsID        = _dWeights.WeightsID;
                _pWeights.lbs              = _dWeights.lbs;
                _pWeights.FK_routineWorkID = _pWeights.FK_routineWorkID;

                _pressWeights.Add(_pWeights);
            }

            return(_pressWeights);
        }
        public viewModel()
        {
            singleExercise = new exerciseModel();
            exerciseList   = new List <exerciseModel>();

            singleBodyPart = new bodyPartModel();
            bodyPartList   = new List <bodyPartModel>();

            singlePerson = new personModel();
            personList   = new List <personModel>();

            singleRoutine = new routineModel();
            routineList   = new List <routineModel>();

            singleRoutineWorkout = new routineWorkoutModel();
            routineWorkoutList   = new List <routineWorkoutModel>();

            singleRole = new roleModel();
            roleList   = new List <roleModel>();

            singleWeights = new weightsModel();
            weightsList   = new List <weightsModel>();
        }