public int UpLoadCustomerToDataBase(string upLoadFiles) { if (File.Exists(upLoadFiles)) { List <Customer> costlist = MyExcelHelper.CustomerList(upLoadFiles); if (costlist == null) { return(0); } return(this.myDal.UploadCustomertoDataBase(costlist)); } return(0); }