예제 #1
0
        public ActionResult _GetPlayerYourWeight(long PlayerID, DateTime ActivityDate)
        {
            PlayerMeasurementsRepository pdaRepo = new PlayerMeasurementsRepository();

            var activity = pdaRepo.ReadOne(PlayerID, ActivityDate, this);

            return(PartialView(activity));
        }
예제 #2
0
        public ActionResult SaveWeightMeasurementData(PlayerMeasurementExt model)
        {
            string Msg    = "";
            bool   status = true;
            PlayerMeasurementsRepository pdaRepo = new PlayerMeasurementsRepository();

            pdaRepo.CreateOrUpdate(model, ref Msg, ref status, this);

            if (status)
            {
            }
            return(new JsonResult {
                Data = true
            });
        }
예제 #3
0
        public ActionResult _RemoveWeightMeasurements(PlayerMeasurementExt model)
        {
            PlayerMeasurementExt m = new PlayerMeasurementExt()
            {
                PlayerID     = model.PlayerID,
                ActivityDate = model.ActivityDate
            };
            string Msg    = "";
            bool   status = true;

            PlayerMeasurementsRepository pMeasurementRepo = new PlayerMeasurementsRepository();

            m.PlayerMeasurementID = pMeasurementRepo.CreateOrUpdate(m, ref Msg, ref status, this);

            return(PartialView(m));
        }