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

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

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

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