/// <summary> /// Adds the provider tlevels asynchronous. /// </summary> /// <param name="model">The model.</param> /// <returns></returns> public async Task <bool> AddProviderTlevelsAsync(IList <ProviderTlevel> model) { if (model == null || !model.Any()) { return(false); } var newTlevels = _mapper.Map <IList <TqProvider> >(model); return(await _tqProviderRepository.CreateManyAsync(newTlevels) > 0); }