示例#1
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
            });
        }
示例#2
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));
        }