public IActionResult Create(Employee employee) { _context.Add(employee); _context.SaveChanges(); return(RedirectToAction(nameof(Index))); }
public IActionResult Create(Unit unit) { _context.Add(unit); _context.SaveChanges(); return(RedirectToAction(nameof(Index))); }