public static void RemoveFavorite(Repository rep) { var f = new Favorite(rep, GetGuidfromSelectedItem(rep)); f.Delete(); }