public ActionResult Remove(int id = 0) { Videogames Videogame = Videogames.Get(id); if (Videogame != null) { Videogame.Remove(); } return(Redirect("~/")); }
public ActionResult Remove(int id = 0) { //Eleminar datos de la db Videogames videogames = Videogames.GetGame(id); if (videogames != null) { //borrar videogames.Remove(); } return Redirect("~/Home"); }