Esempio n. 1
0
 public List <FloorFinancialSessionResult> UpdateFloorFinancialSession(int installation_No, string type, string voucher_ID)
 {
     try
     {
         using (ExCommsSQLDataAccess DataContext = this.GetDataContext())
         {
             return(DataContext.usp_UpdateFloorFinancialSession(installation_No, type, voucher_ID).ToList());
         }
     }
     catch (Exception ex)
     {
         Log.Exception(ex);
         return(new List <FloorFinancialSessionResult>());
     }
 }
Esempio n. 2
0
        public bool UpdateFloorFinancialSession(int?installationNo, string type, string voucherID)
        {
            bool bRet = false;

            try
            {
                using (ExCommsSQLDataAccess DataContext = this.GetDataContext())
                {
                    DataContext.usp_UpdateFloorFinancialSession(installationNo, type, voucherID);
                    bRet = true;
                }
            }
            catch (Exception ex)
            {
                bRet = false;
                Log.Exception(ex);
            }

            return(bRet);
        }