public async Task <IActionResult> AddSubordinates([Bind("ID,FirstName,LastName,Occupation")] Subordinates model)
        {
            if (ModelState.IsValid)//Server side validation
            {
                _context.Add(model);
                await _context.SaveChangesAsync();

                return(View("SubordinateDetails", model));
            }
            return(View("Subordinates", model));
        }
        public async Task <IActionResult> AddModule(Module model)
        {
            if (ModelState.IsValid)
            {
                _context.Add(model);
                await _context.SaveChangesAsync();

                var results = _context.Modules.ToList();
                return(View("Index", results));
            }
            return(View("Index", model));
        }
        public async Task <IActionResult> Create([Bind("CourseID,Name,Code")] Module module)
        {
            if (ModelState.IsValid)
            {
                _context.Add(module);
                await _context.SaveChangesAsync();

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