Exemple #1
0
        public ActionResult UserProfileView(EHR ehr)
        {
            // string strmy=Request.QueryString["Body"];
            using (var ctx = new EHealthEntities())
            {
                EHR objehr = new EHR();
                objehr.UserID         = ehr.UserID;
                objehr.EHRID          = ehr.EHRID;
                objehr.EHRDescription = ehr.EHRDescription;
                objehr.UserName       = ehr.UserName;
                objehr.LastUpdated    = ehr.LastUpdated;

                ctx.Entry(ehr).State = EntityState.Modified;

                ctx.SaveChanges();
            }
            return(RedirectToAction("Index"));
        }
Exemple #2
0
        public ActionResult SUPUserProfileView(int ehrid, int ehruserid, string ehrdesc)
        {
            int    ehridup     = Convert.ToInt32(ehrid);
            int    ehruseridup = Convert.ToInt32(ehruserid);
            string ehrdescup   = ehrdesc;

            using (var ctx = new EHealthEntities())
            {
                EHR ehr = new EHR();
                ehr.EHRID  = ehridup;
                ehr.UserID = ehruseridup;

                ehr.EHRDescription = ehrdescup;

                ctx.Entry(ehr).State = EntityState.Modified;
                ctx.SaveChanges();
            }
            return(RedirectToAction("Index"));
        }