public async Task <ActionResult> Create(PlayerDTO playerDTO) { if (ModelState.IsValid) { await service.AddPlayer(playerDTO); return(RedirectToAction("Index")); } return(View(playerDTO)); }
public async Task <ActionResult> Create(PlayerDTO playerDTO) { if (ModelState.IsValid) { await service.AddPlayer(playerDTO); return(RedirectToAction("Index")); } return(View(playerDTO)); }