Esempio n. 1
0
        public ActionResult UpateGoals(int UserID,float HbA1c, float FPG, bool FPGflag, float PPG, bool PPGflag, float BPH, float BPL, float Tch, bool Tchflag, float LDLch, bool LDLchflag, float HDLch, bool HDLchflag, float TG, bool TGflag, float Ua, bool Uaflag, float AlbCr, bool AlbCrflag, float Athlete, float Weight)
        {
            ControlGoalsResults newcontrolgoals = new ControlGoalsResults();
            newcontrolgoals.UserID = UserID;
            newcontrolgoals.HbA1c = HbA1c;
            newcontrolgoals.FPG = FPG;
            newcontrolgoals.FPGflag = FPGflag;
            newcontrolgoals.PPG = PPG;
            newcontrolgoals.PPGflag = PPGflag;
            newcontrolgoals.BPH = BPH;
            newcontrolgoals.BPL = BPL;
            newcontrolgoals.Tch = Tch;
            newcontrolgoals.Tchflag = Tchflag;
            newcontrolgoals.LDLch = LDLch;
            newcontrolgoals.LDLchflag = LDLchflag;
            newcontrolgoals.HDLch = HDLch;
            newcontrolgoals.HDLchflag = HDLchflag;
            newcontrolgoals.TG = TG;
            newcontrolgoals.TGflag = TGflag;
            newcontrolgoals.Ua = Ua;
            newcontrolgoals.Uaflag = Uaflag;
            newcontrolgoals.AlbCr = AlbCr;
            newcontrolgoals.AlbCrflag = AlbCrflag;
            newcontrolgoals.Athlete = Athlete;
            newcontrolgoals.Weight = Weight;

            SqlFunctionalOperation updategoals = new SqlFunctionalOperation();
            int i = updategoals.UpdateControlGoals(newcontrolgoals);

            SqlFunctionalOperation searchgoals = new SqlFunctionalOperation();
            ControlGoals controlgoalsresults = new ControlGoals();
            controlgoalsresults = searchgoals.SearchControlGoals(UserID);
            return Json(controlgoalsresults);
        }
Esempio n. 2
0
 public ActionResult SearchGoals(int UserID)
 {
     SqlFunctionalOperation searchgoals = new SqlFunctionalOperation();
     ControlGoals controlgoalsresults = new ControlGoals();
     controlgoalsresults = searchgoals.SearchControlGoals(UserID);
     return Json(controlgoalsresults);
 }