public async Task <IActionResult> Create([Bind("ID,LastName,FirstMidName,EnrollmentDate")] Student student)
        {
            if (ModelState.IsValid)
            {
                _context.Add(student);
                await _context.SaveChangesAsync(true);

                return(RedirectToAction(nameof(Index)));
            }
            return(View(student));
        }
 public void Add(Course entity)
 {
     Validations(entity);
     _ctx.Add(entity);
 }