public ActionResult RaidInfo() { RaidSellDetailViewModel result = new RaidSellDetailViewModel(); BossHelper bh=new BossHelper(); result.SellDetail = bh.GetBossData("翡翠夢魘"); result.RaidName = "翡翠夢魘"; return View("RaidInfo",result); }
public ActionResult SaveSellDetail(string selldetail) { RaidSellDetailViewModel testdata = JsonConvert.DeserializeObject<RaidSellDetailViewModel>(selldetail); BossHelper bh = new BossHelper(); bh.SaveDetail(testdata); return View("GAssistant"); //return View("GAssistant",result.ToString()); }
public ActionResult GetInitGForm(DateTime? raidDate,string raidName) { if (raidDate == null) { raidDate=DateTime.Now; } if (string.IsNullOrEmpty(raidName)) { } RaidSellDetailViewModel viewModel=new RaidSellDetailViewModel(); BossHelper bh = new BossHelper(); viewModel.RaidName = raidName; viewModel.AttendDate = raidDate.Value; viewModel.SellDetail = bh.InsertTempBoss(); return View("RaidForm", viewModel); }