public async Task <IActionResult> Create([Bind("ID,Language,Experience")] ProgrammingLanguage programmingLanguage) { if (ModelState.IsValid) { _context.Add(programmingLanguage); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(programmingLanguage)); }
public async Task <IActionResult> Create([Bind("ID,Name,Description,Resume")] Profile profile) { if (ModelState.IsValid) { _context.Add(profile); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(profile)); }
public async Task <IActionResult> Create([Bind("ID,Name,Date,ECTS")] Course course) { if (ModelState.IsValid) { _context.Add(course); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(course)); }