예제 #1
0
        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));
        }
예제 #2
0
 public void Delete(Guid id)
 {
     _services.DeleteGame(id);
 }