public int UpLoadCollectBagToDataBase(string upLoadFiles) { if (File.Exists(upLoadFiles)) { List <CollectPackBag> collectList = MyExcelHelper.GetCollectList(upLoadFiles); if (collectList == null) { return(0); } return(this.myDal.UploadCollectBagtoDataBase(collectList)); } return(0); }