public ActionResult ViewUser(string name) { var model = new DashboardTables { PreliminaryTable = GetRelated(name) }; return View("Index",model); }
public ActionResult Index() { var model = new DashboardTables(); var currentUser = User.Identity.Name; GetBalance(currentUser); model.PreliminaryTable = GetRelated(currentUser); return View(model); }