public ActionResult GetMatchData1(string matchID, string playerID) { long x = long.Parse(matchID); //Convert.ToInt64() var MatchDetailsModel = CommonExtensions.GetMatchDetail(x); ViewBag.ShowList = true; TempData["userData"] = MatchDetailsModel; return(RedirectToAction("About")); }
// GET: api/Products/5 public IHttpActionResult Get(long id) { var MatchDetailsModel = CommonExtensions.GetMatchDetail(id); return(Ok(MatchDetailsModel)); //var product = products.Where(x => x.ProductId == id).ToList(); //if (product == null) //{ // return NotFound(); //} //return Ok(product); }
public ActionResult GetMatchData(string matchID, string playerID) { // 4169885095 var a = HttpContext.Request.QueryString["Match ID"]; long x = long.Parse(a); //Convert.ToInt64() var MatchDetailsModel = CommonExtensions.GetMatchDetail(x); ViewBag.ShowList = true; // ViewData["MatchDetailsModel"] = MatchDetailsModel; // return RedirectToAction("Index", MatchDetailsModel); TempData["userData"] = MatchDetailsModel; return(RedirectToAction("Index")); }