コード例 #1
0
        // GET: Employee
        public ActionResult Index(int?Id)
        {
            EmployeeViewModel empViewModel = new EmployeeViewModel();

            if (Id != null)
            {
                empViewModel.Employee = client.GetEmployeeById(Id);
            }

            empViewModel.EmployeeList = client.GetAllEmployee();

            return(View(empViewModel));
        }