public async Task <IActionResult> Create([Bind("ID,Name,Surname,PersonalDetails")] Employees employees) { if (ModelState.IsValid) { _context.Add(employees); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(employees)); }
public async Task <IActionResult> Create([Bind("RelationID,EmplID,SkillID")] EmplSkills emplSkills) { if (ModelState.IsValid) { _context.Add(emplSkills); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(emplSkills)); }
public async Task <IActionResult> Create([Bind("ID,Name,Description")] Skills skills) { if (ModelState.IsValid) { _context.Add(skills); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(skills)); }