Ejemplo n.º 1
0
        public async Task <IResultModel> CrawlInsert(IList <AreaCrawlingModel> list)
        {
            using (var tran = _repository.BeginTransaction())
            {
                foreach (var m in list)
                {
                    var entity = _mapper.Map <AreaEntity>(m);
                    await CrawlingInsert(entity, m.Children, tran);
                }

                tran.Commit();
            }

            return(ResultModel.Success());
        }