标签: asp.net-mvc c#-4.0 dependency-injection
public ActionResult Hello(IEmployee employee) { employee.Name = "ABC"; employee.Company = "XYZ"; employee.SSN = "****"; return View(employee); }
我通过抽象传递雇员对象。