public async Task AddAsync(Resource resource)
        {
            await _repository.InsertRecordAsync(resource.AsEntity());

            await _repository.SaveAsync();
        }