示例#1
0
 public void OnPost()
 {
     try
     {
         if (Upload1 != null)
         {
             var fileName = Service1.SaveFile(_environment, Upload1);
             var data     = Service2.ReadExcelFile("sheet1", fileName);
             //var result = Method.GetListOfTransactions(data);
             ResultsTasviye = Service3.GetListOfTransactions(data);
         }
         if (Upload2 != null)
         {
             var fileName = Service1.SaveFile(_environment, Upload2);
             var data     = Service2.ReadExcelFile("sheet1", fileName);
             ResultsTasviyeKhorgin = Service4.GetListOfTransactionskhorgin(data);
             ResultsTasviyeKhorgin.Count();
         }
     }
     catch (Exception exp)
     {
         throw exp;
     }
 }