Example #1
0
        public virtual ActionResult DeleteConfirmed(int id, ApplicationUser currentUser)
        {
            _playedGameDeleter.DeletePlayedGame(id, currentUser);

            return(new RedirectResult(Url.Action(MVC.GamingGroup.ActionNames.Index, MVC.GamingGroup.Name)
                                      + "#" + GamingGroupController.SECTION_ANCHOR_RECENT_GAMES));
        }
Example #2
0
 public virtual ActionResult DeleteConfirmed(int id, ApplicationUser currentUser)
 {
     playedGameDeleter.DeletePlayedGame(id, currentUser);
     //TODO really don't know whether I need to commit here or if it is automatically taken care of when disposing.
     dataContext.CommitAllChanges();
     return(new RedirectResult(Url.Action(MVC.GamingGroup.ActionNames.Index, MVC.GamingGroup.Name)
                               + "#" + GamingGroupController.SECTION_ANCHOR_RECENT_GAMES));
 }
        public HttpResponseMessage DeletePlayedGame(int playedGameId, int gamingGroupId)
        {
            _playedGameDeleter.DeletePlayedGame(playedGameId, CurrentUser);

            return(Request.CreateResponse(HttpStatusCode.NoContent));
        }