public IActionResult CreatePloeg([FromBody] Ploeg newPloeg) { context.Ploegen.Add(newPloeg); context.SaveChanges(); return(Created("", newPloeg)); }
public IActionResult CreateSpeler([FromBody] Speler newSpeler) { context.Spelers.Add(newSpeler); context.SaveChanges(); return(Created("", newSpeler)); }