public async Task <ActionResult> DeleteScore(Guid?id) { if (id == null) { return(Redirect("/Error/400")); } await gameRepo.Delete(id ?? Guid.Empty); return(RedirectToAction("Scoreboard")); }
public RedirectToActionResult Delete(int id) { gameRepo.Delete(id); return(RedirectToAction("Index")); }