Beispiel #1
0
        public ActionResult Create([Bind(Include = "id,busId,code,date,url,postData,postType,returnData,result,description,mark")] Logdetail logdetail)
        {
            if (ModelState.IsValid)
            {
                db.Logdetail.Add(logdetail);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(logdetail));
        }
Beispiel #2
0
        public ActionResult Create([Bind(Include = "ID,CODE,NAME,TYPE,ISAUTO,STARTDATE,ENDDATE,VALUE,FREQUENCY")] Models.Business business)
        {
            if (ModelState.IsValid)
            {
                db.Business.Add(business);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(business));
        }