public string DeleteTeacher(string id, bool isDel) { Material_Teacher teacher = _teacherBll.Find(id); teacher.Del_Flag = isDel; return(_teacherBll.UpdateEntities(new List <Material_Teacher>() { teacher }) ? "OK" : "Error"); }
// GET: Apply //借用审批 public ActionResult Borrow() { List <string> teacherIds = _applyBll.GetEntities(m => true).Select(m => m.Teacher_Id).Distinct().ToList(); for (int i = 0; i < teacherIds.Count; i++) { var id = teacherIds[i]; teacherIds[i] += "/" + _teacherBll.Find(id).Teacher_Name; } ViewBag.teachers = teacherIds; return(View()); }