Example #1
0
        public ActionResult Update1()
        {
            HttpCookie        CurrCookie         = Request.Cookies["information_id"];
            int               NUM                = Convert.ToInt32(CurrCookie.Value);
            borrowInformation _borrowInformation = db.borrowInformations.SingleOrDefault(u => u.information_id == NUM);

            _borrowInformation.负责人意见 = Request["负责人意见"];
            _borrowInformation.系领导意见 = Request["系领导意见"];
            _borrowInformation.informationCategory = 1;

            db.Entry <borrowInformation>(_borrowInformation).State = System.Data.EntityState.Modified;
            db.SaveChanges();

            return(RedirectToAction("inforCheck", "Check"));
        }