Example #1
0
 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);
     }
 }
Example #3
0
 public bool DeleteTeacher(Users teacher)
 {
     try
     {
         _db.Entry(teacher).State = EntityState.Deleted;
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Example #4
0
        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);
            }
        }
Example #6
0
        public bool DeleteCategory(Categories item)
        {
            try
            {
                _db.Entry(item).State = System.Data.Entity.EntityState.Deleted;

                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }