public ActionResult Index() { return View(); }
public ActionResult Logout() { Session.Abandon(); return RedirectToAction("Login", "Account"); }
public ActionResult GetStockData(int id) { // get stock data from DB using id var data = db.Stocks.FirstOrDefault(s => s.Id == id); return Json(data, JsonRequestBehavior.AllowGet); }Package library: System.Web.Mvc.