Beispiel #1
0
 public string AddLiker(string id)
 {
     if (!IsLiker(id))
     {
         LikerIdList.Add(id);
         return(null);
     }
     return("Not a new liker.");
 }
Beispiel #2
0
 public string RemoveLiker(string id)
 {
     if (IsLiker(id))
     {
         LikerIdList.Remove(id);
         return(null);
     }
     return("Not a liker.");
 }
Beispiel #3
0
 public bool IsLiker(string id)
 {
     return(LikerIdList.Any(likerId => likerId == id));
 }