Exemplo n.º 1
0
 public void Save(Contact entity)
 {
     _contacts.Add(entity);
 }
Exemplo n.º 2
0
 public void Update(Contact entity, Guid id)
 {
     var contact = _contacts.FirstOrDefault(x => x.Id == id);
     contact.Email = entity.Email;
     contact.Name = entity.Name;
 }
Exemplo n.º 3
0
 public void Delete(Contact entity)
 {
     _contacts.Remove(entity);
 }