public bool UnsubscribeFromPublisher(int subscriberID, int publisherID)
        {
            var deleteSubscription = _context.Subscriptions.Find(publisherID, subscriberID);

            _context.Remove(deleteSubscription);

            _context.SaveChanges();

            return(true);
        }
Exemple #2
0
 public bool RemoveRatingForEpic(Domain.Models.Rating rating)
 {
     try
     {
         var db_rating = _context.Ratings.Find(rating.ID);
         _context.Remove(db_rating);
         _context.SaveChanges();
         return(true);
     }
     catch { return(false); }
 }