Exemplo n.º 1
0
        public ActionResult Edit(int Id)
        {
            BLL.EmployeeMiddleBLL mybll = new EmployeeMiddleBLL();
            EmployeeMiddleShow    Model = mybll.GetDataByID(Id);

            ViewBag.EmployeeMiddleShow = Model;
            return(View());
        }
Exemplo n.º 2
0
        /// <summary>
        /// 获取费用中间表中数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public EmployeeMiddleShow GetDataByID(int id)
        {
            EmployeeMiddleShow Model = repository.GetDataByID(db, id);

            return(Model);
        }