public ActionResult Edit(int Id) { BLL.EmployeeMiddleBLL mybll = new EmployeeMiddleBLL(); EmployeeMiddleShow Model = mybll.GetDataByID(Id); ViewBag.EmployeeMiddleShow = Model; return(View()); }
/// <summary> /// 获取费用中间表中数据 /// </summary> /// <param name="id"></param> /// <returns></returns> public EmployeeMiddleShow GetDataByID(int id) { EmployeeMiddleShow Model = repository.GetDataByID(db, id); return(Model); }