Exemple #1
0
        public IActionResult Delete(int Id)
        {
            var classes = _classes.GetClasses(Id);

            if (classes == null)
            {
                return(View(nameof(NotFound)));
            }
            _classes.DeleteUser(classes);
            return(RedirectToAction(nameof(Index)));
        }
Exemple #2
0
 public void DeleteUser(int id)
 {
     _Iclasses.DeleteUser(id);
 }