コード例 #1
0
 public ActionResult AddRoom(MD_LotteryRoom roominfo)
 {
     ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
     //接收参数名称不能与提交的参数名相同(不区分大小写)
     if (ModelState.IsValid)
     {
         bool result = Lottery.AddRoom(roominfo);
         if (result)
         {
             return(PromptView("保存成功"));
         }
         else
         {
             return(PromptView("保存失败"));
         }
     }
     return(View(roominfo));
 }