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

                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }
예제 #5
0
        public bool DeleteSubCourses(SubCourse item)
        {
            try
            {
                _db.Entry(item).State = System.Data.Entity.EntityState.Deleted;

                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }
예제 #6
0
        public bool DeleteCategory(Categories item)
        {
            try
            {
                _db.Entry(item).State = System.Data.Entity.EntityState.Deleted;

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