コード例 #1
0
        public void UpdateMasterSettings(string companyName,
                                         string parkingPlaceCode,
                                         string parkingPlaceName,
                                         string twoWheelerParkingRatePerHour,
                                         string fourWheelerParkingRatePerHour,
                                         string lostTicketPenality,
                                         string plcBoardPortNumber)
        {
            var query = string.Format(queries["UpdateMasterSettings"], companyName, parkingPlaceCode, parkingPlaceName,
                                      twoWheelerParkingRatePerHour, fourWheelerParkingRatePerHour, lostTicketPenality, plcBoardPortNumber,
                                      MasterId);

            sqlDataAccess.ExecuteNonQuery(query);
        }
コード例 #2
0
 public void UpdateMasterSettings(string companyName,
                                  string parkingPlaceCode,
                                  string parkingPlaceName,
                                  string twoWheelerParkingRatePerHour,
                                  string fourWheelerParkingRatePerHour,
                                  string lostTicketPenality)
 {
     try
     {
         var query = string.Format(queries["UpdateMasterSettings"], companyName, parkingPlaceCode, parkingPlaceName,
                                   twoWheelerParkingRatePerHour, fourWheelerParkingRatePerHour, lostTicketPenality, MasterId);
         sqlDataAccess.ExecuteNonQuery(query);
     }
     catch (Exception exception)
     {
         FileLogger.Log($"TDClient Master settings could not be updated successfully to database as : {exception.Message}");
         throw;
     }
 }