Exemplo n.º 1
0
        public async Task <ActionResult> DeleteScore(Guid?id)
        {
            if (id == null)
            {
                return(Redirect("/Error/400"));
            }
            await gameRepo.Delete(id ?? Guid.Empty);

            return(RedirectToAction("Scoreboard"));
        }
Exemplo n.º 2
0
 public RedirectToActionResult Delete(int id)
 {
     gameRepo.Delete(id);
     return(RedirectToAction("Index"));
 }