Ejemplo n.º 1
0
 public void Update(Wish entity)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 2
0
 public Task DeleteAsync(Wish entity)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 3
0
 public Task<Wish> AddAsync(Wish entity)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 4
0
 public void Update(Wish entity)
 {
     _context.Wishes.Attach(entity);
     _context.Entry(entity).State = EntityState.Modified;
 }
Ejemplo n.º 5
0
 public async Task DeleteAsync(Wish entity)
 {
     await Task.FromResult(_context.Wishes.Remove(entity));
 }
Ejemplo n.º 6
0
 public async Task<Wish> AddAsync(Wish entity)
 {
     var addedEntity = await _context.Wishes.AddAsync(entity);
     return addedEntity.Entity;
 }