public ActionResult Index() { this.emp = new Models.EmployeeModel() { ID = 10, Name = "first Employee", City = "bangalore" }; return(View(this.emp)); }
public ActionResult ModelDemo() { WebApplication1.Models.EmployeeModel emp = new WebApplication1.Models.EmployeeModel() { ID = 10, Name = "first Employee", City = "bangalore" }; //ViewBag.Employee = emp; return(View(emp)); }