public bool Delete(Courses course) { try { CourseDAL courseDAL = new CourseDAL(); return(courseDAL.Delete(course)); } catch (Exception) { throw; } }
public bool Remove(string cno) { return(miDal.Delete(cno) > 0); }
public bool DeleteEduCourse(Course item) { return(courseDAL.Delete <Course>(item)); }
/// <summary> /// 删除 /// </summary> /// <param name="Id">主键Id</param> /// <returns>bool值,判断是否操作成功</returns> public bool Delete(int Id) { return(dal.Delete(Id)); }