/// <summary> /// By given id, displays information about user /// </summary> /// <param name="id"></param> /// <returns></returns> public IActionResult Detail(int id) { try { var model = service.GetDetailedPlayer(id); return(this.View(model)); } catch (InvalidOperationException e) { return(this.View("Error", new InvalidActionViewModel() { ErrorMessage = e.Message })); } }