public void RemoveLike(int likeID) { _dbContext.Likes.Remove(_dbContext.Likes.Find(likeID)); _dbContext.SaveChanges(); }
public void Insert(UserProfile user) { _context.UserProfiles.Add(user); _context.SaveChanges(); }
public void Save(Notification notification) { _dbContext.Notifications.Add(notification); _dbContext.SaveChanges(); }