Beispiel #1
0
        public void add(FootBaller item)
        {
            Guid id = Guid.NewGuid();

            item.Id = id.ToString();
            FootBallers.Add(item);
        }
Beispiel #2
0
 public FootBaller updateItem(string id, FootBaller item)
 {
     for (int i = 0; i < FootBallers.Count; i++)
     {
         if (FootBallers[i].Id == id)
         {
             FootBallers[i].Team = item.Team;
             FootBallers[i].Name = item.Name;
             return(FootBallers[i]);
         }
     }
     return(null);
 }