I have the following:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using PostGetModel.Models;
namespace PostGetModel.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
var pessoa = new Pessoa
{
PessoaId = 1,
Nome = "teste teste",
twitter = "@teste"
};
return View(pessoa);
}
}
}
no Index:
The code does not complete in this part where I add the: PostGetModel what could be wrong?
@Model PostGetModel.Models.Pessoa;
@{
ViewBag.Title = "Index";
}
<h2>Index</h2>
<p>model.PessoaId</p>