Example #1
0
        // GET: Forum/Details/5
        //public async Task<IActionResult> Details(int? id)
        //      {
        //          if (id == null)
        //          {
        //              return NotFound();
        //          }

        //          var team = await _context.Teams
        //              .Include(t => t.League)
        //              .FirstOrDefaultAsync(m => m.ID == id);
        //          if (team == null)
        //          {
        //              return NotFound();
        //          }

        //          return View(team);
        //      }

        // GET: Forum/Create
        public IActionResult Create()
        {
            ViewData["Team"] = new SelectList(footballService.GetAllTeams(), "ID", "Name");
            return(View());
        }