public JsonResult DeleteGame(string game) { var serializer = new JavaScriptSerializer(); var gameToDelete = serializer.Deserialize <GameEditDTO>(game); games.DeleteGame(gameToDelete); return(Json(new { success = true, responseText = "Game succesfuly deleted" }, JsonRequestBehavior.AllowGet)); }
public void Delete(Guid id) { _services.DeleteGame(id); }