Esempio n. 1
0
        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"));
        }
Esempio n. 2
0
        // 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);
        }
Esempio n. 3
0
        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"));
        }