public async Task Delete(Guid userId) { User user = await _dataContext.Users.FindAsync(userId); _dataContext.Users.Remove(user); await _dataContext.SaveChanges(); }
public async Task Delete(Guid userId) { User user = await _dataContext.Users.FindAsync(userId); _dataContext.Users.Remove(user); await _dataContext.SaveChanges(); }