private NFLTeamStats_DefenseService CreateDefenseStatsService() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new NFLTeamStats_DefenseService(userId); return(service); }
// GET: NFLTeamStats_Defense public ActionResult Index() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new NFLTeamStats_DefenseService(userId); var model = service.GetDefenseStats(); return(View(model)); }