public void add(FootBaller item) { Guid id = Guid.NewGuid(); item.Id = id.ToString(); FootBallers.Add(item); }
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); }