Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Data.Entity;
- using System.Linq;
- using System.Web;
- using System.Web.Mvc;
- using WebApplication1.Models;
- namespace WebApplication1.Controllers
- {
- public class PokemonController : Controller
- {
- // GET: Pokemon
- public ActionResult Index()
- {
- PokemonContext px = new PokemonContext();
- Pokemon Mypokemon = new Pokemon();
- Mypokemon = px.Pokemon.First(pke => pke.Name == "Pikachu");
- return View(Mypokemon);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement