public async Task <IActionResult> Edit(int id, [Bind("Id,Image,Name,Position,Facebook,Pinterest,Vimeo,Twitter,IsDeleted,TimeDeleted")] OurTeacher ourTeacher)
        {
            if (id != ourTeacher.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(ourTeacher);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!OurTeacherExists(ourTeacher.Id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(ourTeacher));
        }
        public async Task <IActionResult> Create([Bind("Id,Image,Name,Position,Facebook,Pinterest,Vimeo,Twitter,IsDeleted,TimeDeleted")] OurTeacher ourTeacher)
        {
            if (ModelState.IsValid)
            {
                _context.Add(ourTeacher);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(ourTeacher));
        }