/// <summary> /// Gets details for specific player /// </summary> /// <param name="id">Player id.</param> /// <param name="returnUrl">URL for back link</param> /// <returns>View with specific player.</returns> public ActionResult Details(int id, string returnUrl = "") { var player = _playerService.Get(id); if (player == null) { return(HttpNotFound()); } var model = new PlayerRefererViewModel(player, returnUrl); model.AllowedOperations = _authService.GetAllowedOperations(AuthOperations.Players.Edit); return(View(model)); }
#pragma warning disable S2360 // Optional parameters should not be used /// <summary> /// Gets details for specific player /// </summary> /// <param name="id">Player id.</param> /// <param name="returnUrl">URL for back link</param> /// <returns>View with specific player.</returns> public ActionResult Details(int id, string returnUrl = "") #pragma warning restore S2360 // Optional parameters should not be used { var player = _playerService.Get(id); if (player == null) { return(HttpNotFound()); } var model = new PlayerRefererViewModel(player, returnUrl) { AllowedOperations = _authService.GetAllowedOperations(AuthOperations.Players.Edit) }; return(View(model)); }