예제 #1
0
 public void Save(Contact entity)
 {
     _contacts.Add(entity);
 }
예제 #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;
 }
예제 #3
0
 public void Delete(Contact entity)
 {
     _contacts.Remove(entity);
 }