public static void OnFavoriteBasicCatholicPrayer(int basicCatholicPrayerId) { var userId = Auth.user().Id; var service = new FavoritesService(); if (service.IsBasicCatholicPrayerAlreadyInFavorites(userId, basicCatholicPrayerId)) { service.RemoveBasicCatholicPrayer(userId, basicCatholicPrayerId); } else { service.AddBasicCatholicPrayer(userId, basicCatholicPrayerId); } }