Exemplo n.º 1
0
 public bool DeleteStockUploadByStorItemId(long storeItemStockId, out List <string> filePathList)
 {
     try
     {
         var returnStatus = _repository.RemoveWithResultList(m => m.StoreItemStockId == storeItemStockId);
         _uoWork.SaveChanges();
         var output = new List <string>();
         returnStatus.ForEach(x => output.Add(x.ImagePath));
         filePathList = output;
         return(returnStatus.Any());
     }
     catch (Exception ex)
     {
         ErrorLogger.LogError(ex.StackTrace, ex.Source, ex.Message);
         filePathList = new List <string>();
         return(false);
     }
 }