public async Task <ActionResult> CAsync() { var lineup = new ValidateLineup(); ViewData["MyLineup"] = lineup.GetLineup(); var players = await DocumentDBRepository <Player> .GetPlayersAsync(d => (d.Position == "C" || d.InLineup == true)); return(View("~/Views/MainPage/Index.cshtml", players)); }
// GET: MainPage public async Task <ActionResult> Index() { var lineup = new ValidateLineup(); ViewData["MyLineup"] = lineup.GetLineup(); var players = await DocumentDBRepository <Player> .GetPlayersAsync(d => (d.Salary > 0)); return(View(players)); }