ChessSharp.Web.Controllers.HistoryController.Challenges C# (CSharp) Method

Challenges() private method

private Challenges ( int id = null ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult
        public ActionResult Challenges(int? id = null)
        {
            if (CurrentUser != null)
            {
                var challenges = UnitOfWork.All<Challenge>(c => c.ChallengingPlayer == CurrentUser);

                return View(challenges);
            }

            return RedirectToAction("Index", "Home");
        }