示例#1
0
 public IActionResult Create(Employee employee)
 {
     _context.Add(employee);
     _context.SaveChanges();
     return(RedirectToAction(nameof(Index)));
 }
示例#2
0
 public IActionResult Create(Unit unit)
 {
     _context.Add(unit);
     _context.SaveChanges();
     return(RedirectToAction(nameof(Index)));
 }