public ActionResult PlayerRem(int id_player, int id_team) { bool result = false; Team t = _teamBLL.TeamSelect(id_team); if (_sessionHelper.CurrentPlayer.Id == t.Captain.Id || _sessionHelper.CurrentPlayer.Id == t.SubCaptain.Id) { result = _teamBLL.TeamRemPlayer(id_player); if (result) { result = _notificationBLL.NotificationCreate(id_player, _sessionHelper.CurrentPlayer, "VocĂȘ foi removido do seu time atual", NotificationType.alert); } } return(Json(result)); }