2021-06-10 12:58:37 +10:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Web;
|
|
|
|
|
using System.Web.Mvc;
|
|
|
|
|
|
2021-06-10 16:15:36 +10:00
|
|
|
|
using FirstMVCDemo.Models;
|
|
|
|
|
|
2021-06-10 12:58:37 +10:00
|
|
|
|
namespace FirstMVCDemo.Controllers
|
|
|
|
|
{
|
|
|
|
|
public class HomeController : Controller
|
|
|
|
|
{
|
|
|
|
|
// GET: Home
|
2021-06-10 16:15:36 +10:00
|
|
|
|
public ActionResult Index(int id)
|
2021-06-10 12:58:37 +10:00
|
|
|
|
{
|
2021-06-10 16:15:36 +10:00
|
|
|
|
EmployeeBusinessLayer employeeBL = new EmployeeBusinessLayer();
|
|
|
|
|
Employee employee = employeeBL.GetEmployeeDetails(id);
|
2021-06-10 15:48:05 +10:00
|
|
|
|
return View();
|
2021-06-10 12:58:37 +10:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|