public void AddPlayCount(FlashGame model) { SysCache.Clear(); model.Attach(); model.PlayCount += 1; dal.Update(model); }
public int Add(FlashGame model) { SysCache.Clear(); return dal.Add(model); }
public static int Add(FlashGame model) { return bizFlashGame.Instance().Add(model); }
public static void AddPlayCount(FlashGame model) { bizFlashGame.Instance().AddPlayCount(model); }
public ActionResult GameSuccess() { string gameName = Request["gameName"]; string ftid = Request["ftid"]; string GameRemark = Request["GameRemark"]; string SmallImageUrl = Request["SmallImageUrl"]; string BigImageUrl = Request["BigImageUrl"]; string GameUrl = Request["GameUrl"]; string GameWidth = Request["GameWidth"]; string GameHight = Request["GameHight"]; string initFrame = Request["initFrame"]; string startFrame = Request["startFrame"]; string overType = Request["overType"]; string overFrame = Request["overFrame"]; string overAttr = Request["overAttr"]; string score = Request["score"]; string noPreload = Request["noPreload"]; string bgColor = Request["bgColor"]; string res = Request["res"]; string startFlag = Request["startFlag"]; string IsAsc = Request["IsAsc"]; string IsRecommend = Request["IsRecommend"]; FlashGame model = new FlashGame(); model.bgColor = bgColor; model.BigImageUrl = BigImageUrl; model.ftid = MainFunc.GetInteger(ftid); model.GameHight = MainFunc.GetInteger(GameHight); model.GameName = gameName; model.GameRemark = GameRemark; model.GameUrl = GameUrl; model.GameWidth = MainFunc.GetInteger(GameWidth); model.initFrame = initFrame; model.IsAsc = (byte)MainFunc.GetInteger(IsAsc); model.IsRecommend = (byte)MainFunc.GetInteger(IsRecommend); model.noPreload = noPreload; model.overAttr = overAttr; model.overFrame = overFrame; model.overType = overType; model.res = res; model.score = score; model.SmallImageUrl = SmallImageUrl; model.startFlag = startFlag; model.startFrame = startFrame; int fid = GameFacade.Add(model); GameWorldRecord r = new GameWorldRecord(); r.fid = fid; r.PoAwards = 100000; r.UserId = 1000; r.UserName = "******"; r.WorldRecord = MainFunc.GetDecimal(Request["WorldRecord"]); GameWorldRecordFacade.AddModel(r); return RedirectToAction("GameAdd", "PlayGame"); }