public bool DeleteCourse(Courses courses) { try { _db.Entry(courses).State = EntityState.Deleted; return(true); } catch (Exception) { return(false); } }
public bool DeleteSelectedCategory(Selected_Category selectedCategory) { try { _db.Entry(selectedCategory).State = EntityState.Deleted; return(true); } catch (Exception) { return(false); } }
public bool DeleteTeacher(Users teacher) { try { _db.Entry(teacher).State = EntityState.Deleted; return(true); } catch (Exception) { return(false); } }
public bool DeleteNotifications(Notifications item) { try { _db.Entry(item).State = System.Data.Entity.EntityState.Deleted; return(true); } catch (Exception) { return(false); } }
public bool DeleteSubCourses(SubCourse item) { try { _db.Entry(item).State = System.Data.Entity.EntityState.Deleted; return(true); } catch (Exception) { return(false); } }
public bool DeleteCategory(Categories item) { try { _db.Entry(item).State = System.Data.Entity.EntityState.Deleted; return(true); } catch (Exception) { return(false); } }