25 lines
574 B
C#
25 lines
574 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
|
|
using FirstMVCDemo.Models;
|
|
|
|
namespace FirstMVCDemo.Controllers
|
|
{
|
|
public class HomeController : Controller
|
|
{
|
|
// GET: Home
|
|
public ActionResult Index()
|
|
{
|
|
EmployeeBusinessLayer employeeBL = new EmployeeBusinessLayer();
|
|
Employee employee = employeeBL.GetEmployeeDetails(101);
|
|
|
|
ViewBag.Employee = employee;
|
|
ViewBag.Header = "Employee Details";
|
|
|
|
return View();
|
|
}
|
|
}
|
|
} |