public ActionResult DeleteConfirmed(int id)
        {
            AssignTrainerToTopic assignTrainerToTopic = _context.AssignTrainerToTopics.Find(id);

            _context.AssignTrainerToTopics.Remove(assignTrainerToTopic);
            _context.SaveChanges();
            return(RedirectToAction("Index"));
        }
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.NotFound));
            }
            AssignTrainerToTopic assignTrainerToTopic = _context.AssignTrainerToTopics.Find(id);

            if (assignTrainerToTopic == null)
            {
                return(HttpNotFound());
            }
            return(View(assignTrainerToTopic));
        }