public async Task Delete(DeletePersonInput input) { _context.People.Remove(new Person() { Id = input.Id }); await _context.SaveChangesAsync(); }
public async Task Delete(DeletePersonInput input) { var person = await _context.People.FirstOrDefaultAsync(p => p.PhoneNumber == "000000"); if (person == null) { return; } _context.People.Remove(person); await _context.SaveChangesAsync(); }