예제 #1
0
        public async Task <ActionResult> Edit([Bind(Include = "Id,LotteryId,QiHao,OpenNumber,OpenTime,CreateTime,UpdateTime,Source,Forecast1,Forecast2,Forecast3,Used,CurrentForecastNumber,ForecastFrom,UsedBy")] LotteryOpenHistory lotteryOpenHistory)
        {
            if (ModelState.IsValid)
            {
                db.Entry(lotteryOpenHistory).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(lotteryOpenHistory));
        }
예제 #2
0
        public async Task <ActionResult> Edit([Bind(Include = "Id,openid,nickname,sex,province,city,country,headimgurl,unionid,phone")] WeiXinUser weiXinUser)
        {
            if (ModelState.IsValid)
            {
                db.Entry(weiXinUser).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(weiXinUser));
        }