public bool Save(TodoCabo model) { if (model.Id == Guid.Empty) { model.Id = Guid.NewGuid(); TheList.Add(model); return(true); } else { var substitute = TheList.FirstOrDefault(x => x.Id == model.Id); substitute = model; return(true); } return(false); }
public void Delete(TodoCabo existing) { TheList.Remove(existing); }