public async Task <IActionResult> Edit(int sportId, Sport sport) { if (ModelState.IsValid) { await _sportService.Edit(sport); return(RedirectToAction("Sports", "Admin")); } return(View(sport)); }
public async Task <IActionResult> Edit(int sportId, Sport sport) { if (ModelState.IsValid) { await _sportService.Edit(sport); return(RedirectToAction("Sports", "Admin")); } return(View(sport)); }