public async Task <IActionResult> Create([Bind("CourseId,Name,Description,Department,CourseNumber,Semester,Year")] Course course) { if (ModelState.IsValid) { _context.Add(course); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(course)); }
public async Task <IActionResult> Create([Bind("LearningId,Name,Description,CourseInstanceId")] LearningOutcome learningOutcome) { if (ModelState.IsValid) { _context.Add(learningOutcome); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(learningOutcome)); }