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); }
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; } }